UNIT 1 – JAVASCRIPT FUNDAMENTALS
Assignment 1
Assignment 1-A
Note: Attempt any two questions from the following [5 Marks Each]
Q1. What are some popular frameworks and libraries in the JavaScript ecosystem, and how have
they impacted web development?
Q2. Define and differentiate between primitive and non-primitive (reference) data types in
JavaScript.
Q3. Explain type coercion in JavaScript. Provide examples of explicit and implicit type coercion.
Assignment 1-B
Note: Attempt any two questions from the following [10 Marks Each]
Q1. Explain the concept of operator precedence and associativity.
Q2. Implement a JavaScript program that checks if a given year is a leap year or not.
Q3. Create a JavaScript program that generates a random number between a specified minimum
and maximum value.
Assignment 1-C
Note: Attempt any two questions from the following [ 20 Marks Each]
Q1. Build a JavaScript function that reverses a given string.
Q2. Develop a JavaScript program that finds the largest element in an array of numbers.
Q3. Write a JavaScript function that counts the number of vowels in a given string.
Q4. Create a JavaScript program that demonstrates the use of try/catch/finally for exception
handling.