JS Practical code Flashcards
1
Q
A
HTML code used to link the js file to html
2
Q
alert(“Thanks for your input!”);
A
alert message pop up for the user
3
Q
num++; is the same way of writing
A
num = num + 1;
4
Q
how to have increments of the variable by 1
A
num++;
5
Q
is num++ and ++num the same
A
nope, false
5
Q
If you want to increment both variables, you must put the pluses before the variable,
A
++num
6
Q
how to have a default value in the prompt
A
prompt(“ question”, “default value”);
7
Q
A