READ Free Dumps For Microsoft- 70-480
Question ID 14876 | You create an HTML5 webpage. You have the following HTML markup: You also have the following JavaScript code segment: |
Option A | Answer : * The appendTo() method inserts HTML elements at the end of the selected elements. * example to loop over a JavaScript array object. var json = [ {"id":"1","tagName":"apple"}, {"id":"2","tagName":"orange"}, {"id":"3","tagName":"banana"}, {"id":"4","tagName":"watermelon"}, {"id":"5","tagName":"pineapple"} ]; $.each(json, function(idx, obj) { alert(obj.tagName); }); |
Correct Answer | A |
Question ID 14877 | You are creating a function by using JavaScript. The function accepts an object as the
|
Option A |
* Use the switch statement to select one of many blocks of code to be executed. Syntax switch(expression) { case n: code block break; case n: code block break; default: default code block } This is how it works: The switch expression is evaluated once. The value of the expression is compared with the values of each case. If there is a match, the associated block of code is executed. * Object.prototype.constructor Returns a reference to the Object function that created the instance's prototype. Note that the value of this property is a reference to the function itself, not a string containing the function's name. The value is only read-only for primitive values such as 1, true and "test". * Description All objects inherit a constructor property from their prototype: var o = {}; o.constructor === Object; // true var a = []; a.constructor === Array; // true var n = new Number(3); n.constructor === Number; // true * The constructor property is created together with the function as a single property of func.prototype. |
Correct Answer | A |