https://youtu.be/eBhOrml6qxQ
- Watch the video to understand how to use JSFiddle.com
- Do practice the below exercises on jsfiddle.com
- Save the link and keep it with you
Exercises 01
Check if the given number is odd or even?
- Prompt the user to enter a number
- if the entered is not a number alert the user the same (Given is not a number)
- 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
- Create a paragraph and a button called “Toggle Color” in html
- 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.
- 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.
- Given a prompt to user to enter a string
- Write a function that can loop through the string and determine if it a palindrome