JS Functions

JS Functions

Professional Development

13 Qs

quiz-placeholder

Similar activities

rubiks cube quiz

rubiks cube quiz

KG - Professional Development

13 Qs

DRRM Basics

DRRM Basics

Professional Development

18 Qs

Food Safety

Food Safety

University - Professional Development

10 Qs

SpaceX

SpaceX

3rd Grade - Professional Development

10 Qs

SERA Day 2022

SERA Day 2022

Professional Development

17 Qs

คริสต์มาสภายใน 2023

คริสต์มาสภายใน 2023

Professional Development

10 Qs

Raker Semester 1 Tahun 2020 PLN UIW Kalselteng

Raker Semester 1 Tahun 2020 PLN UIW Kalselteng

Professional Development

14 Qs

Clare and Barry's TV Soap Quiz

Clare and Barry's TV Soap Quiz

KG - Professional Development

10 Qs

JS Functions

JS Functions

Assessment

Quiz

Other

Professional Development

Practice Problem

Easy

Created by

Mariessa D

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Why do we write functions?

Functions make our code cuter

Functions make our code easier to read and reusable

Some JS code cannot run without functions

Functions do all math in JS

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

What two things must one do in order to create a function?


Define the function


Add a Parameter


put code to be executed inside the function body


Give the function a value inside the Parameter

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the reason we use parameters?

To create a lot of functions


To be able to go back and fix error in the code and make it easier to debug.

To modify an existing function and make them easier to customize or change when being called.

Just for fun

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Functions make coding more efficient

True

False

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the max amount of parameters that you can add to a function?

1

5

100

as many as you want

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which operator is used to ASSIGN a value to a variable in JavaScript?

=

===

==

!=

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A function :

Expresses a true false statement

Runs a boolean (true/false) statement based on data entered

Is a block of code designed to perform a particular task

is used to connect words, phrases, and clauses

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?