When writing a string, we must start with what phrase to initialize it?
console.log
What type of variable is 10
Int
Do we use read or next when asking for user input?
read
What is this sign *
multiply
We are___ days until the general election(closest one)
A. <25
B. <50
C. <75
B
What is wrong with this segment of code?
Console.log("Hello");
Capital C.
What type of variable is either true or false
Boolean
Randomizer
What does % mean?
Module, what is left over.
This prominent rapper will be playing at the Super Bowl in February.
Kendrick Lamar
Write on the board how this code would print:
console.log("Hello");
console.log("_");
console.log("World");
Hello
_
World
How do we make sure a variable never changes?
How do you call it?
Keep it constant.
const
(_,_)
Describe the blanks in the Randomizer
LowEnd, highEnd
Solve:
1+2+3*4-2
13
The Federal Reserve announced yesterday that they would __________ interest rates.
Lower
This data type in Java is used to represent a sequence of characters.
String
What's wrong with this code
let numApples = 20;
console.log("I love to eat + numApples + "A day");
Missing a "
What is wrong with this line of code or is there anything wrong at all?
num =readInt("What is your favorite number?")
No "let"
Solve
1+(2+3)/4+8*6
I want the answer as an Int
50
Who is the Mayor of Overland Park?
Curt Skoog
This keyword is used to declare an INT in JavaScript.
let
How would this print? Write on board
let teacher = "Mr.";
let name = "O'Keefe";
console.log( teacher + name);
Mr.O'Keefe (no space)
What is incorrect or correct with this code?
let num = Randomizer.readInt(1,10);
It should be next not read
Solve:
1+4*5%3+2
5
How many Senators does the state of Kansas have?
2