Search Header Logo

JavaScript Basics CodeHS

Authored by Greg Baker

Computers

7th - 12th Grade

CCSS covered

Used 191+ times

JavaScript Basics CodeHS
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

Indicates the beginning  and the end of a JavaScript section.

<html> </html>
<style> </style>
<article> </article>
<script> </script>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A JavaScript file has an extension name of

.jscp
.js
.css
.Jp

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword do we need to define a function?

function
method
onclick
functionName()

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which 1 of the following symbols is used for JavaScript comments?

\\
^
?
//

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In JavaScript, you should include a semi-colon at the end of each statement.

yes
no

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A JavaScript file has an extension name of

.jscp
.js
.css
.Jp

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which command is written correctly?

Move

move

Move();

move();

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?