https://youtu.be/eBhOrml6qxQ

  1. Watch the video to understand how to use JSFiddle.com
  2. Do practice the below exercises on jsfiddle.com
  3. Save the link and keep it with you

Exercises 01

Check if the given number is odd or even?

  1. Prompt the user to enter a number
  2. if the entered is not a number alert the user the same (Given is not a number)
  3. Write logic to check if the given number odd or even number then alert the result (The number is even/odd)

Exercise 02

Toggle the background color for a paragraph on clicking “Color Change” button

  1. Create a paragraph and a button called “Toggle Color” in html
  2. On clicking the button the paragraph background should become red, on next click it should remove the red background color for the same

Exercise 03

Test a given string is palindrome.

  1. What is a palindrome - A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam or racecar.
  2. Given a prompt to user to enter a string
  3. Write a function that can loop through the string and determine if it a palindrome