Which of the following is a valid JavaScript comment? var s = \"some text\"; //
ID: 3770283 • Letter: W
Question
Which of the following is a valid JavaScript comment? var s = "some text"; // comment */ var s = "some text"; /* Which of the following is equivalent to document.forms['myForm'].contact.value? document.forms[0].contact.value myForm.contact.value All of the above None of the above JavaScript is case-sensitive False True In which of the following may JavaScript be placed? Head section Body section Both the head and body section Consider the JavaScript statement var s = 5 + “5”. What value is assigned to s? 55 10 statement is illegal and causes an error none of the above The JavaScript statement x *= (y++ % 3) is equivalent to which of the following? s = s * ((y + 1) % 3) s = s * (y +1 % 3) y = y + 1; s = s * (y % 3) s = s * (y % 3); y = y + 1 Consider the following JavaScript statements: x = 5 and y = 6. What will the expression (x == y) || (!x y) evaluate to? False True Within JavaScript, the body of a do…while loop is guaranteed to execute at least once. False True The Document Object Model provides access to every element in a document. False True Inside which XHTML element is JavaScript placed? Grade the Quiz Reset
in javascript in html
Explanation / Answer
Which of the following is a valid JavaScript comment?
*/ var s = "some text"; /*
Which of the following is equivalent to document.forms['myForm'].contact.value?
myForm.contact.value
JavaScript is case-sensitive
True
In which of the following may JavaScript be placed?
Both the head and body section
Consider the JavaScript statement var s = 5 + “5”. What value is assigned to s?
statement is illegal and causes an error
The JavaScript statement x *= (y++ % 3) is equivalent to which of the following?
s = s * ((y + 1) % 3)
Consider the following JavaScript statements: x = 5 and y = 6. What will the expression (x == y) || (!x y) evaluate to?
False
Within JavaScript, the body of a do…while loop is guaranteed to execute at least once.
True
The Document Object Model provides access to every element in a document.
True
Inside which XHTML element is JavaScript placed? Grade the Quiz Reset
in javascript in html
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.