Hello World!

This text will be changed by JavaScript on clicking the button below.










JavaScript Programs

1. Number Greater Than 10: Check if a number is greater than 10. Print "Greater than 10" or "10 or less."


2. Even or Odd: Check if a number is even or odd using an if-else statement.


3. Positive, Negative, or Zero: Check if a number is positive, negative, or zero and print the message.


4. Password Verification: Check if entered password is "admin123." Print "Login successful" or "Incorrect password."


5. Student Grade: Enter a score (0-100) and get grade: A (90+), B (80-89), C (70-79), F (below 70).


6. Voting Eligibility: Check if a person is eligible to vote (age 18 or above).


7. Larger Number: Enter two numbers and find the larger one. If equal, print "Both numbers are equal."


8. Leap Year: Check if a given year is a leap year (divisible by 4, but not by 100 unless also divisible by 400).


9. Vowel or Consonant: Check if a given character is a vowel (a, e, i, o, u) or a consonant.


10. Discount Calculator: Store offers 10% discount if total bill is greater than $100. Calculate final amount.


11. Print statements using for loop


Displaying the object using object.entries method


        
    

Create your own object: Input your first, last name, phone no., age, gender, profession


        
    


Interactive Demo: Promises, Async/Await, and setTimeout