Why does Google prepend while(1); to their JSON responses?
Correct Answer: It prevents JSON hijacking.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
JavaScript Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More JavaScript MCQ Questions
An HTML form contains 10 checkboxes all named 'chkItems'. Which JavaScript function can be used for checking all the checkboxes together?
Which option is used to access the attributes in E4X?
Which built-in function is used to access form elements using their IDs?
Consider the following code snippet:
Which is not a JavaScript string method?
Which is not a valid JavaScript operator?
Name the different primitive data types of JavaScript ?
Correct method for getting the date of February 1 of the current year into a variable called 'newDate'?
What's the output? Object oriented Javascript() 'use strict' class Art{ succ() { var i=3,j,k=0; for(j=i;j<=7;j++) { k=j+i; if(k>=7) { k=k+3; } else { k=k-2; } } document.write(k-2 +''); } } var waj = new Art(); waj.succ();
What's the output? 'use strict' class Abc{ constructor(t, p) { this.t = t; this.p = p; } test() { var x; var c = 0; for(x=7; x!==0; x&=(x-1)) c++; console.log(c++ + this.t + this. p); } } var Obj1 = new Abc(10.5,20.5); Obj1.test();