JavaScript average (4-7) importance
complexity: 1 ; importance: 7; author: docentmail
Question: Give sample of JavaScript code block
complexity: 1 ; importance: 7; author: docentmail
Question: What should be placed instead of dots to have method do (); performed only when x does not equal y ?
if (x ... y) { do(); }
complexity: 1 ; importance: 7; author: docentmail
Question: What is the name of "=" operators ?
complexity: 2 ; importance: 6; author: docentmail
Question: Give a code fragment that declares a variable, but is not initializing it.
complexity: 2 ; importance: 6; author: docentmail
Question:What is the latest standard of ECMA script?
complexity: 3 ; importance: 6; author: docentmail
Question: Use switch statement and write the code that alert Today is your day!
complexity: 3 ; importance: 6; author: docentmail
Question: create object that has a "name" field and can alert text "Hello my friend" on calling his hi method
complexity: 2 ; importance: 5; author: docentmail
Question: Modify the snippet to use "if" statement to alert "It is night." in case the variable "isNight" is true and "It is not night." otherwise.
complexity: 2 ; importance: 5; author: docentmail
Question: What would be value of x?
var x = 100 / "Apple";
complexity: 2 ; importance: 5; author: docentmail
Question: Which of the names of variables are correct?
2things something4you my_variable_name aaa+bbb ...
complexity: 2 ; importance: 5; author: 4LUCKYNIKITA
Question: What would the alert say?
x=5 x += 5 + 2 alert ( x ) ;
complexity: 2 ; importance: 5; author: docentmail
Question: Name reserved keywords of JavaScript
complexity: 2 ; importance: 5; author: docentmail
Question: Give code snippets with assignment operators.
complexity: 1 ; importance: 5; author: docentmail, 4luckynikita
Question:Name the main four arithmetical operations.
complexity: 3 ; importance: 5; author: docentmail
Question: Replace with the code fragment, with equals one that only one “.” per line/statement
var rez = document.getElementById("testspan").getAttribute("class").length;
complexity: 2 ; importance: 5; author: docentmail
Question: What would be the alert message for the code snippet?
alert(aVar); var aVar=5;
complexity: 2 ; importance: 5; author: docentmail
Question: how many times method do() would be called?
for (i = 0; i < 1 ; i++) { do(); }
complexity: 2 ; importance: 5; author: docentmail
Question: What would be alert messges for the code snippet?
alert(typeof myFunction); alert(typeof OtherFunction); function myFunction(){ alert("Hello from myFunction "); } var myOtherFunction = function() { alert("hello from local myFunction"); };
complexity: 4 ; importance: 5; author: docentmail
Question:List all falsy values.
complexity: 3 ; importance: 5; author: docentmail
Question:What is percentage of support ECMAScript 5 in modern browsers?
complexity: 4 ; importance: 5; author: docentmail
Question:Which version of ECMA script is supported by current browsers?
complexity: 4 ; importance: 5; author: docentmail
Question:Why standard for JavaScript has name ECMAScript?
complexity: 3 ; importance: 5; author: docentmail
Question:What is percentage of support ECMAScript 6.0 in modern browsers?
complexity: 4 ; importance: 5; author: docentmail
Question: Develop an snippet to use "if" statement to alert "type is number" if in case the type variable "theVar" is number, "type is string" if type is string less, "type is something else" otherwise.
complexity: 2 ; importance: 5; author: docentmail
Question: Develop an snippet to use "if" statement to alert "You are to young" in case the variable "age" is less or equal 17.
complexity: 2 ; importance: 5; author: docentmail
Question: Develop an snippet to use "if" statement to alert "The size fits" in case the variable "size" value is greater than 5 but less than 7.
complexity: 2 ; importance: 5; author: docentmail
Question: What would be value of x?
var x = 100 / "10";
complexity: 2 ; importance: 5; author: docentmail
Question:Give definition for "truthy/falsy values" with if statement.
complexity: 1 ; importance: 4; author: docentmail
Question: Give the code snippet to declare (or define) variable myVar but not initialize it. What is value of the variable?
complexity: 2 ; importance: 4; author: docentmail
Question: Name main parts (or aspects) of variable
complexity: 2 ; importance: 4; author: docentmail
Question: what does alert (x); show?
var x = 1; var y = x; y=101; alert (x);
complexity: 5 ; importance: 4; author: docentmail
Question: What would be result of execution of the snippet?
function myFunction(){ alert("Hello from myFunction "); } function testFunctionHoisting(){ alert(typeof myFunction); myFunction(); var myFunction = function() { alert("hello from local myFunction"); }; } testFunctionHoisting();
complexity: 2 ; importance: 4; author: docentmail
Question:What is the name of organization that maintains JavaScript standards?
complexity: 2 ; importance: 4; author: docentmail
Question: how many times method do() would be called?
for (i = 0; i < 1 ; i) { do(); }
complexity: 2 ; importance: 4; author: docentmail
Question: how many times method do() would be called?
for (i = 0; i > 1 ; i++) { do(); }
complexity: 2 ; importance: 4; author: docentmail
Question: How to assign last element of array b to var x