console.log("Hello World") // For printing statement in console
Name: console.log
Function: Printing something in console:
alert("Hello World") // For a dialoge box in webpage
Name: alert
Function: Creating a additional pop out dialogue
document.write("this statement is written in javascript") // To write something on the webpage
Name : document.write
Function: writing inside a document
console.warn("This is my warning") // to display warning in console
console.error("This is an error") //to display error in console
To display errors and warnings in console
So guys If you Have Any Question You can ask me here you will get guaranteed answers!
ReplyDeleteWhat is the importance of error and warning command?? BTW Nice course
ReplyDeleteNice course please be consistent 😊
ReplyDeleteReally helpfull tutorial
ReplyDelete