JavaScript Skills Assessment

JavaScript Skills Assessment

12th Grade

10 Qs

quiz-placeholder

Similar activities

Pronunciation: Regular verb past tense — /id/, /d/ or /t/?

Pronunciation: Regular verb past tense — /id/, /d/ or /t/?

7th Grade - University

12 Qs

Hello Kitty

Hello Kitty

KG - Professional Development

14 Qs

MAC1_Lesson25

MAC1_Lesson25

3rd Grade - Professional Development

10 Qs

Procedure Text and If Clause

Procedure Text and If Clause

12th Grade

10 Qs

ENGLISH 12-UNIT 2 (-ED PRONUNCIATION)

ENGLISH 12-UNIT 2 (-ED PRONUNCIATION)

12th Grade

15 Qs

Analyzing Plot Elements

Analyzing Plot Elements

8th Grade - University

15 Qs

Regular verbs pronunciation - d, - t, - Id

Regular verbs pronunciation - d, - t, - Id

10th - 12th Grade

10 Qs

Tiết 3: CẤU TRÚC CHƯƠG TRÌNH

Tiết 3: CẤU TRÚC CHƯƠG TRÌNH

1st - 12th Grade

14 Qs

JavaScript Skills Assessment

JavaScript Skills Assessment

Assessment

Quiz

English

12th Grade

Hard

Created by

Vishnu M

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to declare a variable in JavaScript?

int variableName;

declare variableName;

variableName = 5;

let variableName; or const variableName; or var variableName;

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a primitive data type in JavaScript?

number

boolean

object

string

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will the following code output: console.log(5 > 3 && 2 < 4);?

null

true

false

undefined

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you define a function in JavaScript?

myFunction(param1, param2) { // function body }

function:myFunction(param1, param2) { // function body }

define myFunction(param1, param2) => { // function body }

function myFunction(param1, param2) { // function body }

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the scope of a variable declared with 'let' inside a block?

The scope of a variable declared with 'let' is global.

The scope of a variable declared with 'let' is limited to the entire script.

The scope of a variable declared with 'let' inside a block is limited to that block.

The scope of a variable declared with 'let' is limited to the entire function.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How can you access the second element of an array named 'fruits'?

fruits[1]

fruits(1)

fruits[2]

fruits.get(1)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code: var obj = {name: 'John', age: 30}; console.log(obj['name']);?

John

Jane

30

Doe

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?