Cada pergunta deste Quiz é cronometrada.
In which type of applications can JavaScript be used specifically?
Web, only frontend
Web in general. Frontend and Backend.
Web, mobile, desktop and IoT applications.
Only web and mobile.
What is console used for?
To print the result of a JS Math operation there.
To hide/show HTML elements from the page.
To store variables and their values there.
To display a selected piece of JS code there.
What will this print to the console?
console.log( '10'/2);
'5'
5
'10/2'
Error! Cannot divide string with a number!
What does the following statement prints to the console?
console.log(23 + '3');
'233'
'323'
26
'26'
Error. Cannot add a number and a string!
console.log(30 + 20 + 10 + '5' + 10);
error!
615
75
60510
What does the following code prints to the console?
var result = (25 + '10') / 10; console.log(typeof result);
"string"
"number"
Error!
undefined
Select the correct phrase that is true regarding JS variables.
JavaScript variables are case insensitive. That means we don't have to worry if a variable's name is written in uppercase or lowercase.
We can use variables in our scripts even if we have defined them later in our script (in a line more below).
A variable can't hold as it's own value, another variable.
We are not allowed to re-assign a new value into a variable that already holds one. We are not allowed to update a variable's value.