JavaScript Fundamentals Quiz

JavaScript Fundamentals Quiz

12th Grade

32 Qs

quiz-placeholder

Similar activities

OODP FT1 Assessment Questions

OODP FT1 Assessment Questions

University

30 Qs

Junior Programmer - Test 2

Junior Programmer - Test 2

University - Professional Development

34 Qs

Code Debugging Round

Code Debugging Round

University

31 Qs

Unit 1-3 js

Unit 1-3 js

University

32 Qs

TGT APCSA Spring

TGT APCSA Spring

9th - 12th Grade

34 Qs

KUIS 2 - LOGIKA ALGORITMA 171B37

KUIS 2 - LOGIKA ALGORITMA 171B37

University

30 Qs

JavaScript Quiz

JavaScript Quiz

12th Grade

30 Qs

PTS PWPB XII RPL

PTS PWPB XII RPL

12th Grade

35 Qs

JavaScript Fundamentals Quiz

JavaScript Fundamentals Quiz

Assessment

Quiz

Education

12th Grade

Medium

Created by

Hans Daduya

Used 3+ times

FREE Resource

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to declare a variable in JavaScript?

a.var

b.let

c.const

d.All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will typeof true return?

undefined
number
string
boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write a comment in JavaScript?

a.<-- This is a comment -->

b.#This is a comment

c.//This is a comment

d.'This is a comment'

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare an array in JavaScript?

a.let arr={};

b.let arr=[];

c.let arr=();

d.let arr=<>;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a JavaScript data type?

a.undefined

b.string

c.integer

d.number

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the first element in an array in JavaScript?

a.0

b.1

c.-1

d.Depends on the array

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a constant variable in JavaScript?

a.var

b.const

c.let

d.static

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?