What is console.log() and why it is used?
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.
console.log(name); // here name is object, an array or variable.
console.log(‘Your form is submitted succesfully!’);
// do something