Search Header Logo

JavaScript Basics

Authored by Long Nguyen

Computers

University

Used 9+ times

JavaScript Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is JavaScript's official name?

JavaScript

TypeScript

ECMAScript

ScriptJS

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who invented JavaScript?

Bill Gates

Brendan Eich

Tim Berners-Lee

Steve Jobs

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of JavaScript in web development?

To create web servers

To add interactivity to HTML pages

To handle database connections

To create operating systems

4.

OPEN ENDED QUESTION

3 mins • 1 pt

Which HTML tag is used to include JavaScript in a webpage?

Evaluate responses using AI:

OFF

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does `console.log()` do in JavaScript?

Prints content to the web page

Displays content in the browser’s console

Creates a new HTML element

Stops the script execution

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method is used to access an HTML element by its ID in JavaScript?

document.getElementByClassName()

document.getById()

document.querySelector()

document.getElementById()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is `innerHTML` used for in JavaScript?

To define a JavaScript function

To insert JavaScript into an HTML file

To change the content of an HTML element

To call a JavaScript file

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?

Discover more resources for Computers