marcilustra / JS-Practice

Exercises I did to practice using Vanilla Javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JS-Practice

1-150

Questions on w3resource

  1. 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

  2. Write a JavaScript program to print the current window contents.

  3. Write a JavaScript program to get the current date.
    Expected Output :
    mm-dd-yyyy, mm/dd/yyyy or dd-mm-yyyy, dd/mm/yyyy

  4. Write a JavaScript program to find the area of a triangle where three sides are 5, 6, 7.

  5. 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.

  6. Write a JavaScript program to determine whether a given year is a leap year in the Gregorian calendar.

  7. Write a JavaScript program to find out if 1st January will be a Sunday between 2014 and 2050.

  8. 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".

  9. Write a JavaScript program to calculate the days left before Christmas.

  10. Write a JavaScript program to calculate multiplication and division of two numbers (input from the user).

  11. 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

  12. Write a JavaScript program to get the website URL (loading page).

  13. Write a JavaScript exercise to create a variable using a user-defined name.

  14. Write a JavaScript exercise to get the filename extension.

  15. 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.

About

Exercises I did to practice using Vanilla Javascript


Languages

Language:HTML 52.8%Language:JavaScript 47.2%