41.How to print a web page using javascript?JavaScript helps you to implement this functionality using print function of window object. The JavaScript print function window.print() will print the current web page when executed. 42.What is Date object in JavaScript?The Date object is a datatype built into the JavaScript language. Date objects
are created with the new Date( ). 43.What is Number object in JavaScript?The Number object represents numerical date, either integers or floating-point
numbers. In general, you do not need to worry about Number objects because
the browser automatically converts number literals to instances of the number
class.
var val =newNumber(number);
If the argument cannot be converted into a number, it returns NaN (Not-a-Number). 44.How to handle exceptions in JavaScript?The latest versions of JavaScript added exception handling capabilities.
JavaScript implements the try...catch...finally construct as well as the throw
operator to handle exceptions. 45.What is purpose of onError event handler in JavaScript?The onerror event handler was the first feature to facilitate error handling for
JavaScript. The error event is fired on the window object whenever an exception
occurs on the page. 46.?
47.?
48.?
49.?
50.?
51.?
52.?
53.?
54.?
55.?
56.?
57.?
58.?
59.?
60.?
|