JAVASCRIPT CODING TEST
1. Write a JavaScript program to print the given pattern (5 mark)
*
**
***
****
2. Write a JavaScript function that returns the Fibonacci sequence up to a given
number of terms.
3. Create a BMI calculator that allows users to input their weight and height,
calculates their Body Mass Index (BMI), and provides a classification based on the
BMI value .
4. Create a Random User Generator application that fetches a list of users from the
JSONPlaceholder API and displays a random user’s details each time a button is
clicked. Implement the following: API: Use the endpoint
[Link] to fetch user data.