Subject:CSS(22519) Chap No. 1:Basics of javascript Faculty: Mrs. N.H. Thubrikar
program NAME OF DEPARTMENT :AI &ML Date of submission: 30-07-2024
All Questions are compulsory
1. State the features of Javascript. 2. Write a javascript program to check whether entered number is prime or not. 3. Write a javascript function that accepts a string as a parameter and find the length of the string. 4. Write a javascript to checks whether a passed string is palindrome or not. 5. Write a javascript function to generate Fibonacci series till user defined limit. 6. List the all operators in Java script. 7. Explain prompt () and confirm () and alert() method of Java script with syntax and example. 8. Explain getter and setter properties in Java script with suitable example. 9. State the use of method in JavaScript with the help of suitable example. 10. List & explain datatypes in JavaScript. 11. Write a JavaScript program that will display current date in DD/MM/YYYY format. 12. Describe rules for declaring variable? What is primitive data types? 13. What is local and global variable with example? 14. Write syntax for nested if—else ,do… while,for loop,switch case?