Introduction to JavaScript Basics

Introduction to JavaScript Basics

10th Grade

10 Qs

quiz-placeholder

Similar activities

Micro-organismes

Micro-organismes

1st Grade - University

10 Qs

Excretion Test 1

Excretion Test 1

10th Grade

10 Qs

Cell Biology I

Cell Biology I

10th Grade

15 Qs

Southern Colonies Plantation Quiz

Southern Colonies Plantation Quiz

5th Grade - University

12 Qs

NARRATIVE TEST KELAS 9 CHAPTER 7

NARRATIVE TEST KELAS 9 CHAPTER 7

9th - 12th Grade

15 Qs

Evaluation

Evaluation

10th Grade

10 Qs

Accord (musique)

Accord (musique)

9th Grade - University

10 Qs

Cara Kerja komputer

Cara Kerja komputer

9th - 12th Grade

10 Qs

Introduction to JavaScript Basics

Introduction to JavaScript Basics

Assessment

Quiz

Others

10th Grade

Practice Problem

Hard

Created by

Anhar Ibrahim

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does JavaScript primarily run in?

Web browsers

Desktop applications

Mobile apps

Server-side scripts

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used to denote a variable in JavaScript?

Variable names in JavaScript are denoted by letters, underscores, or dollar signs.

Asterisks and ampersands

Numbers and special characters

Only letters and numbers

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to declare a function in JavaScript?

function myFunction[] { }

myFunction() = function() { }

function:myFunction() { }

function myFunction() { }

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of 'console.log(typeof 42)'?

number

string

boolean

undefined

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an array in JavaScript?

let arr = () => {};

let arr = [];

let arr = {};

let arr = new Array();

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to define a constant variable?

final

const

static

immutable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for equality comparison in JavaScript?

=

== and ===

<=>

!==

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?