User Inputs JavaScript

User Inputs JavaScript

Assessment

Flashcard

Computers

10th Grade

Hard

Created by

Quizizz 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: ");