Logo

Javascript Questions Set 245:

Quiz Mode

Which is a property that reports rotation of mouse wheel axes?

1
2
3
4

Solution:

What will be the Output?

console.log("B" - "A" + "2");

ASCII CODE:

A: 65

B: 66

1
2
3
4

Solution:

Which JavaScript function is used to display a message in a dialog box?

1
2
3
4

Solution:

  The properties() method is a ______ 

1
2
3
4

Solution:

When is the mouseover event fired?

1
2
3
4

Solution:

Which events does the DOM Level 3 Events specification standardize?

1
2
3
4

Solution:

What is the purpose of the method item()?

1
2
3
4

Solution:

What are scorched-earth optimizations?

1
2
3
4

Solution:

Guess the output of the Code:

function vowel_count(str1)  { var list = 'aeiouAEIOU'; var count = 0; for(var x = 0; x < str1.length ; x++) { if (list.indexOf(str1[x]) !== -1) {  count += 1;  }  }  return count; } console.log(vowel_count("The quick brown fox is jumping."));

1
2
3
4

Solution:

Which of the following correctly describes the states of a Promise?

1
2
3
4

Solution: