Vidyalelo
JavaScript · Q66

Invocation And Performance Navigation

Programming · JavaScript · question 66

Q66

Which best explains getSelection()?

A.
Returns the VALUE of a selected OPTION
B.
Returns document.URL of the window in focus
C.
Returns the value of cursor-selected text
Answer
D.
Returns the VALUE of a checked radio input

Answer: Option C

Solution

Answer: Option C
Solution:
The getSelection() method returns the value of the cursor-selected text.