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

Programming Exercises

Create an object student with properties name, age, and grade. Access and print each property.

Easy

Problem Statement

Create an object student with properties name, age, and grade. Access and print each property.

Sample Input

{name: "John", age: 20, grade: "A"}

Sample Output

John
20
A

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
// Declare an object and access its properties let student = { name: "John", age: 20, grade: "A" }; console.log(); console.log(); console.log();
Log in or sign up to run or submit your code.Log inSign up
Input
{name: "John", age: 20, grade: "A"}
Expected Output
John
20
A