The times this loop runs
var i =0;while(i<12){
i+=2;
}
What is 6
The output the following code produces
output = function(){
console.log("some stuff");
output();
}
what is no output
x at the end of this code is equal to
x<-3
y<-6
z<- x+y
x<- z
what is 9
output of the following
if(true && true || false ||true && !true){
console.log("in");
}else{
console.log("out");
}
Mr.M's favorite color
What is purple
The times this loop runs
var temp=0;
for(var i =10; i!=temp; i--){temp++;
}What is 5
the output the following code produces
var i =10;
output();
output = function(){var i += 3;
console.log("i ="+i);
}what is an error
The list myList contains this after the code is run
var myList = ["some",6,"stuff"];
appendItem(myList, "more");removeItem(myList, 2);
insertItem(myList, 1, 2);
What is
["some", 2, 6, "more"]
the output of the following code
var i =true;
if(i){
console.log("whoot");
}
else{
console.log(25/3);
}
what is whoot
The company that created the first personal computer
What is IBM
Fill in the blank below to make the following loop execute exactly seven times
for(var i = 21 ; i>0 ; ______){
}
//this is a function
myFunction = function{
....//code not shown
}
What is nobody knows
output of the following code
var myList= ["hi", "mom"];
myList[10] = "hiiii";
console.log(myList);
What is an error
Output of the following code
var i = 16;
var t = " ";
if( i == 16){
t= t+i;
if(i == t){
console.log(i);
}
console.log(t);
}
what is " 16" (there is a space before 16)
The year when the first personal computer came out
What is 1981
The number of times this loop runs
for(var i =20; i >0; i/=2){i++;
}what is an infinite amount of times
Output of the following code
var i =0;
output = function(){
while(i<0){
console.log("small");
i++;
}
console.log("big");
}
What is no output
The name of the error the following code produces
var myList = importPhonebook();
for(var i=0; i<myList.length+1; i++){
console.log(mylist[i]);
}
What is index out of bounds exception
Is the following valid?
A AND B OR C <--> B OR A AND B
What is no
What is the meaning of life?
42
You're trying to make every other light turn on in a 20 by 20 grid of LEDs. You have access to a turnOn(row, column) function. Write the code that completes the task.
What is
for(var i =0; i<20; i+=2){
for(var j =0; j<20; j++){
turnOn(i, j);
}
}
var i =10;
output();
output = function(){
if(i ==2){
console.log("here we are");
}else
{
console.log("again");
i--;
output();
}
}
what is "again" x 9 + "here we are"
var mystery = [ [1,5,10] ["hello","how","are"] ]
this code would extract the word "hello" from the array above.
What is mystery[1][1]
Apply DeMorgan's law
~(A or B and (A or B))What is June 23rd 1912