InterviewSolution
Saved Bookmarks
| 1. |
What is console.log() and why it is used? |
|
Answer» It is not a jQuery feature but a feature for debugging purposes USED by developers. It is used to writes a MESSAGE to the console. console.log() accepts a parameter which can be an OBJECT, an array or any message. Syntax : console.log(name); // here name is object, an array or variable. Example$('#form').submit(FUNCTION() { |
|