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

Programming Exercises

Create two variables, a and b, assign them numbers, and print their sum.

Easy

Problem Statement

Create two variables, a and b, assign them numbers, and print their sum.

Sample Input

a = 5, b = 10

Sample Output

15

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
// Declare two variables and print their sum let a = 5; let b = 10; console.log();
Log in or sign up to run or submit your code.Log inSign up
Input
a = 5, b = 10
Expected Output
15