Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

an HCL GUVI product

JavaScript Exercises

Master JavaScript with hands-on practice problems across Beginner, Intermediate, and Advanced tracks. Filter by level, difficulty or status, and solve in our in-browser compiler.

90 questions0 / 90 solved3 levelsUpdated weekly

Programming Tracks16 Tracks

Py

Python

90 Questions
Progress0 / 90 (0%)
BeginnerIntermediateAdvanced
☕

Java

90 Questions
Progress0 / 90 (0%)
BeginnerIntermediateAdvanced
C++

C++

90 Questions
Progress0 / 90 (0%)
BeginnerIntermediateAdvanced
JS

JavaScript

90 Questions
Active Track0 / 90 (0%)
BeginnerIntermediateAdvanced

JavaScript Questions90 Problems

0/90 Solved
QuestionDifficultyProgressStatus
JSPrint "Hello, World!" to the console.JavaScript · Beginner
Easy0%Not Started
JSDeclare a variable name and assign it your name. Print the variable.JavaScript · Beginner
Easy0%Not Started
JSCreate two variables, a and b, assign them numbers, and print their sum.JavaScript · Beginner
Easy0%Not Started
JSWrite a program to find the length of a string stored in a variable str.JavaScript · Beginner
Easy0%Not Started
JSCreate a variable num and check if it is even or odd.JavaScript · Beginner
Easy0%Not Started
JSWrite a program to calculate the area of a rectangle given length and width.JavaScript · Beginner
Easy0%Not Started
JSCreate a function greet that accepts a name as a parameter and returns "Hello, [name]!"JavaScript · Beginner
Easy0%Not Started
JSWrite a program to convert temperature from Celsius to Fahrenheit.JavaScript · Beginner
Easy0%Not Started
JSCreate a function to find the maximum of three numbers.JavaScript · Beginner
Easy0%Not Started
JSWrite a program that checks if a string is a palindrome.JavaScript · Beginner
Easy0%Not Started
JSDeclare an array of five colors and print the first and last colors.JavaScript · Beginner
Easy0%Not Started
JSCreate a function that reverses a string.JavaScript · Beginner
Easy0%Not Started
JSWrite a program to sum all elements in an array.JavaScript · Beginner
Easy0%Not Started
JSCreate an object student with properties name, age, and grade. Access and print each property.JavaScript · Beginner
Easy0%Not Started
JSWrite a function to calculate the factorial of a number.JavaScript · Beginner
Easy0%Not Started
JSWrite a program to check if a number is prime.JavaScript · Beginner
Easy0%Not Started
JSCreate a function to count the number of vowels in a given string.JavaScript · Beginner
Easy0%Not Started
JSWrite a program to remove duplicates from an array.JavaScript · Beginner
Easy0%Not Started
JSCreate an array of numbers and sort them in ascending order.JavaScript · Beginner
Easy0%Not Started
JSWrite a program to find the index of a given element in an array.JavaScript · Beginner
Easy0%Not Started
JSCreate a function that returns the square of each number in an array.JavaScript · Beginner
Easy0%Not Started
JSWrite a function to capitalize the first letter of each word in a string.JavaScript · Beginner
Easy0%Not Started
JSCreate a program to merge two arrays and remove duplicates.JavaScript · Beginner
Easy0%Not Started
JSWrite a program to find the second largest number in an array.JavaScript · Beginner
Easy0%Not Started
JSCreate a function that checks if all elements in an array are equal.JavaScript · Beginner
Easy0%Not Started
RowsShowing 1 - 25 of 90

Frequently asked questions

What programming languages are covered in the exercises?
Our platform supports Python, Java, C, C++, JavaScript, and more languages used in the industry today.
How are the exercises divided across difficulty levels
Our exercises are organized into Beginner, Intermediate, and Advanced levels, letting you progress naturally.
Are the exercises suitable for both beginners and experienced coders?
Yes, the exercises are suitable for both beginners and experienced coders.
How do topic-wise exercises help in better learning?
The topic-wise exercises let you focus on one concept at a time, strengthening your understanding step by step.
Do the exercises cover both basic syntax and complex algorithms?
Yes, from basic syntax to complex algorithms, our exercises span the full range of programming challenges.
Can these exercises prepare me for coding interviews?
Yes, these exercises are designed to match real interview questions, helping you prepare for coding interviews.
Is there an integrated IDE on the platform to run and test the code?
Yes, our platform includes a built-in web IDE where you can write, test, and run your code instantly.
Do the exercises include solutions or hints for guidance?
Yes, when you're stuck, you can access helpful hints or study complete solutions to learn different approaches.
Are there any prerequisites for attempting the advanced-level exercises?
Yes, advanced exercises require a solid understanding of the basics and intermediate concepts of your chosen language.
How do these exercises improve coding speed and efficiency?
Through consistent practice and exposure to diverse challenges, you'll naturally become faster and more efficient at coding.
Is there a time limit for completing each exercise?
No, take as long as you need – our focus is on learning, not racing against the clock.
Are the exercises updated regularly to include new challenges?
Yes, we consistently update our exercise collection to include new challenges and keep up with industry trends.