JavaScript Core Concepts

JavaScript Core Concepts

12th Grade

10 Qs

quiz-placeholder

Similar activities

JavaScript Programming

JavaScript Programming

9th - 12th Grade

12 Qs

JavaScript Control Structures Basic

JavaScript Control Structures Basic

12th Grade

11 Qs

AP CSP Unit 5 Ch 2 Vocab

AP CSP Unit 5 Ch 2 Vocab

9th - 12th Grade

9 Qs

JavaScrip - DSI

JavaScrip - DSI

1st Grade - University

14 Qs

JavaScript Variables

JavaScript Variables

3rd Grade - University

13 Qs

JavaScript - Programação Web - Parcial 2

JavaScript - Programação Web - Parcial 2

12th Grade

10 Qs

JavaScript Quiz 1

JavaScript Quiz 1

9th - 12th Grade

10 Qs

Intro to JavaScript

Intro to JavaScript

9th - 12th Grade

10 Qs

JavaScript Core Concepts

JavaScript Core Concepts

Assessment

Quiz

Computers

12th Grade

Medium

Created by

saista shaikh

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the different data types in JavaScript?

string, number, boolean, object, function, undefined, and symbol

apple, banana, orange, grape

cat, dog, bird, fish

red, blue, green, yellow

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between '==' and '===' operators in JavaScript.

=== checks for equality of value, while == checks for equality of value and type

== checks for equality of value and type, while === checks for equality of value

== and === are interchangeable and can be used interchangeably in JavaScript

== checks for equality of value, while === checks for equality of value and type

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the different types of control structures in JavaScript?

try-catch statement, switch-case statement, do-until loop

if statement, switch statement, for loop, while loop, and do-while loop

if-else statement, repeat statement, for-each loop

while-do statement, if-else-if statement, for-in loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the concept of function scope in JavaScript.

Variables declared inside a function are accessible globally

Variables declared inside a function are only accessible within that function.

Variables declared inside a function are accessible outside of the function

Function scope only applies to arrow functions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare and initialize an array in JavaScript?

var arrayName = [];

arrayName = {}

arrayName = [1, 2, 3]

arrayName = new Array()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of switch case in JavaScript?

To execute different code blocks based on different conditions.

To define the layout of a webpage

To calculate mathematical operations

To create loops in the code

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for declaring a variable in JavaScript?

var variableName;

variableName = new variable();

variableName = var;

variableName var;

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?