JavaScript Basics - Variables and Functions

Easy
JavaScriptBeginner
Overview

Practice basic variable declarations and function definitions in JavaScript.

Code PreviewJavaScript
const greeting = "Hello, World!";
const user = { name: "Alice", age: 25 };

function calculateSum(a, b) {
  return a + b;
}

const result = calculateSum(10, 20);
console.log(`Result: ${result}`);
Statistics
Time Limit
1:00
Created
January 20, 2026
Challengers
3
Completions
0
Avg Accuracy
95.7%
Avg WPM
42
Ranking
RankUserWPMAccuracy
Ssupermandesu
4594.0%
Ss_a_m
4499.0%
Sslime_
3895.0%

Exercise Ranking

Top typers for this exercise

Total Participants

3

Period

All Time

Total Challenges (All Users)

4

Total Practice Time (All Users)

00:03:44

Total Keystrokes (All Users)

800

Period
Sort
RankUserwpmAccuracyStarted/CompletedCorrect/StrokesTotal TimeLast Attempt
Ssupermandesu
45.0094.00%2/1380/40400:01:511/21/2026, 10:37 PM
Ss_a_m
44.0099.00%1/1193/19500:00:531/20/2026, 10:40 PM
Sslime_
38.0095.00%1/0191/20100:01:001/25/2026, 10:40 PM
Ranking of 3 users