The best way to learn JavaScript is by practicing examples. The page contains examples on basic concepts of JavaScript. You are advised to take the references from these examples and try them on your own.

  1. JavaScript Program To Print Hello World
  2. JavaScript Program to Add Two Numbers
  3. JavaScript Program to Find the Square Root
  4. JavaScript Program to Calculate the Area of a Triangle
  5. JavaScript Program to Swap Two Variables
  6. Javascript Program to solve Quadratic Equation
  7. JavaScript Program to Convert Kilometers to Miles
  8. Javascript Program to Convert Celsius to Fahrenheit
  9. Javascript Program to Generate a Random Number
  10. Javascript Program to Check if a number is Positive, Negative, or Zero
  11. Javascript Program to Check if a Number is Odd or Even
  12. JavaScript Program to Find the Largest Among Three Numbers
  13. JavaScript Program to Check Prime Number
  14. JavaScript Program to Print all Prime Numbers in an Interval
  15. JavaScript Program to Find the Factorial of a Number
  16. JavaScript Program to Display the Multiplication Table
  17. JavaScript Program to Print the Fibonacci sequence
  18. JavaScript Program to Check Armstrong Number
  19. JavaScript Program to Find Armstrong Number in an Interval
  20. JavaScript Program to Make a Simple Calculator
  21. JavaScript Program to Find the Sum of Natural Numbers
  22. JavaScript Program to Check Whether the Last Digit of Three Numbers is same
  23. JavaScript Program to Find HCF or GCD
  24. JavaScript Program to Find LCM
  25. JavaScript Program to Find the Factors of a Number
  26. JavaScript Program to Find Sum of Natural Numbers Using Recursion
  27. JavaScript Program to Guess a Random Number
  28. JavaScript Program to Shuffle Deck of Cards
  29. JavaScript Program to Display Fibonacci Sequence Using Recursion
  30. JavaScript Program to Find Factorial of Number Using Recursion
  31. JavaScript Program to Convert Decimal to Binary
  32. JavaScript Program to Find ASCII Value of Character
  33. JavaScript Program to Check Whether a String is Palindrome or Not
  34. JavaScript Program to Sort Words in Alphabetical Order
  35. JavaScript Program to Replace Characters of a String
  36. JavaScript Program to Reverse a String
  37. JavaScript Program to Create Objects in Different Ways
  38. JavaScript Program to Check the Number of Occurrences of a Character in the String
  39. JavaScript Program to Convert the First Letter of a String in to UpperCase
  40. JavaScript Program to Count the Number of Vowels in a String
  41. JavaScript Program to remove a property from an object
  42. JavaScript Program to Check Whether a String Starts with 'S' and Ends with 'G'
  43. JavaScript Program to check if a key exists in an object
  44. JavaScript Program to clone a JS object