User Inputs JavaScript

User Inputs JavaScript

Assessment

Flashcard

Computers

10th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

5 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the right way to print out a statement in JavaScript? Options: consolelog();, console.log();, consolelog[];, print();

Back

console.log();

2.

FLASHCARD QUESTION

Front

Which code allows a user to input a text message? Options: readInt(), readFloat(), readLine(), console.log()

Back

readLine()

3.

FLASHCARD QUESTION

Front

Which code allows a user to input a whole number? Options: readInt(), readFloat(), readLine(), console.log()

Back

readInt()

4.

FLASHCARD QUESTION

Front

Which code allows a user to input a decimal? Options: readInt(), readFloat(), readLine(), console.log()

Back

readFloat()

5.

FLASHCARD QUESTION

Front

Which code allows a user to input a decimal as a variable? Options: let decimal =5.0; let float = enter a decimal decimal; let decimal = readFloat("Enter a decimal: "); console.log("Enter a decimal: ");

Back

let decimal = readFloat("Enter a decimal: ");

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?