Introduction to JavaScript Basics

Introduction to JavaScript Basics

10th Grade

10 Qs

quiz-placeholder

Similar activities

Quiz on Algorithms and Programming

Quiz on Algorithms and Programming

10th Grade

10 Qs

Cell Structure Quiz

Cell Structure Quiz

10th Grade

15 Qs

Descriptive Text

Descriptive Text

10th Grade

10 Qs

Analytical Exposition

Analytical Exposition

10th Grade

10 Qs

Geographical Conditions of Indonesia

Geographical Conditions of Indonesia

10th Grade

10 Qs

Evaluating Functions Word Problems

Evaluating Functions Word Problems

9th - 12th Grade

5 Qs

Tugas pengkajian kurikulum SMK 
Rolanda palendokan-22208029

Tugas pengkajian kurikulum SMK Rolanda palendokan-22208029

10th Grade

10 Qs

Computer Science Essentials for Grade 10

Computer Science Essentials for Grade 10

10th Grade

10 Qs

Introduction to JavaScript Basics

Introduction to JavaScript Basics

Assessment

Quiz

Others

10th Grade

Hard

Created by

Anhar Ibrahim

FREE Resource

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 ===

<=>

!==

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?