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
(d) Returns the VALUE of a checked radio input
I had been asked this question during an online interview.
Enquiry is from Script Loading in chapter Invocation and Performance Navigation of JavaScript