Questions on w3resource
-
Write a JavaScript program to display the current day and time in the following format.
Sample Output : Today is : Tuesday.
Current time is : 10 PM : 30 : 38 -
Write a JavaScript program to print the current window contents. -
Write a JavaScript program to get the current date.
Expected Output :
mm-dd-yyyy, mm/dd/yyyy or dd-mm-yyyy, dd/mm/yyyy -
Write a JavaScript program to find the area of a triangle where three sides are 5, 6, 7. -
Write a JavaScript program to rotate the string 'w3resource' in the right direction. This is done by periodically removing one letter from the string end and attaching it to the front. -
Write a JavaScript program to determine whether a given year is a leap year in the Gregorian calendar.
-
Write a JavaScript program to find out if 1st January will be a Sunday between 2014 and 2050. -
Write a JavaScript program where the program takes a random integer between 1 and 10, and the user is then prompted to input a guess number. The program displays a message "Good Work" if the input matches the guess number otherwise "Not matched".
-
Write a JavaScript program to calculate the days left before Christmas. -
Write a JavaScript program to calculate multiplication and division of two numbers (input from the user).
-
Write a JavaScript program to convert temperatures to and from Celsius, Fahrenheit.
[ Formula : c/5 = (f-32)/9 [ where c = temperature in Celsius and f = temperature in Fahrenheit ] Expected Output : 60°C is 140 °F 45°F is 7.222222222222222°C -
Write a JavaScript program to get the website URL (loading page).
-
Write a JavaScript exercise to create a variable using a user-defined name.
-
Write a JavaScript exercise to get the filename extension.
-
Write a JavaScript program to get the difference between a given number and 13, if the number is broader than 13 return double the absolute difference.