JavaScript Developer

Practice & Master Your Skills

10
Exercises
5
Challenges
0
Total Points
Fill in the Blank
Code Challenges
Certificate
Exercise 1
10 pts
Declare a constant variable.
PI = 3.14159;
Variables that cannot be reassigned
Exercise 2
10 pts
Return a value from a function.
function getAge() {\n 25;\n}
Stops execution and specifies value to be returned
Exercise 3
10 pts
Select an element by its ID.
document.( "myId" );
Most common way to access HTML element
Exercise 4
10 pts
Loop through an array.
fruits.(function(fruit) {\n console.log(fruit);\n});
Calls a function for each array element
Exercise 5
10 pts
Make a network request using Promises.
("api/data").(response => response.json());
Modern alternative to XMLHttpRequest
Exercise 6
10 pts
Attach a click event listener to a button.
btn.( "click" , function() {...});
Sets up a function that will be called whenever the specified event is delivered
Exercise 7
10 pts
Convert a JS object to a JSON string.
let jsonStr = .(obj);
Serializes JS objects into JSON text
Exercise 8
10 pts
Save data to local storage.
.setItem("user", "John");
Stores data with no expiration date
Exercise 9
10 pts
Write a short arrow function.
const add = (a, b) a + b;
Shorter syntax for a function expression
Exercise 10
10 pts
Use a ternary operator to assign status based on age.
let status = (age >= 18) "Adult" "Minor";
Shorthand for if/else statement

1. Click Counter

addEventListener, te

2. Form Validation

preventDefault, valu

3. Live Search

keyup event, toLower

4. Todo App

createElement, appen

5. Color Switcher

document.body.style.

Certificate Locked

You must complete the exercises with a score of 70% or higher to unlock your certificate.

0% Current Score

Claim Your Certificate

Congratulations! You have passed the required exercises. Please provide your details exactly as you want them on your certificate.

Certificate of Completion

Proudly Presented To

Student Name
For successfully completing all exercises and challenges with an outstanding score in the JavaScript course.
Verify ID: LH-XXXX-XXXXXX