web 2 JS

web 2 JS

20 Qs

quiz-placeholder

Similar activities

NARRATIVE TEXT

NARRATIVE TEXT

KG - University

15 Qs

Quiz - Alpro D

Quiz - Alpro D

KG - University

20 Qs

p5.js Quiz

p5.js Quiz

5th Grade

16 Qs

Python Quiz

Python Quiz

10th Grade - University

15 Qs

Fingerprints

Fingerprints

9th - 12th Grade

21 Qs

yuuphp

yuuphp

12th Grade

25 Qs

Forensics Ch. 6 Fingerprints Vocabulary (15)

Forensics Ch. 6 Fingerprints Vocabulary (15)

KG - University

15 Qs

AP Computer Science Principles CODE UNIT 7 Assessment

AP Computer Science Principles CODE UNIT 7 Assessment

KG - University

15 Qs

web 2 JS

web 2 JS

Assessment

Quiz

others

Hard

Created by

Rajad Shakya

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to declare a variable in JavaScript?
int myVar;
var myVar;
let = myVar;
dim myVar;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write a comment in JavaScript?
/* comment */
// comment
# comment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of: 2 + '2' in JavaScript?
4
'4'
NaN
22

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a constant in JavaScript?
let
var
define
const

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does NaN stand for?
Not a Number
No assigned Name
Negative and Null
New assigned Name

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following comparisons is true?
'5' == 5
'5' === 5
5 = '5'
5 != 5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define a function in JavaScript?
fun myFunc()
function myFunc() {}
function = myFunc()
def myFunc()

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?