Header Ads

JavaScript Console Commands

JavaScript Console Commands
1. Console.log()
console.log("Hello World");
2. Console.error()
console.error("Something is wrong");
3. Console.info()
console.info("You are Great");
4. Console.table()
console.table("["Apple","Orange","Grape"]");
5. Console.assert()
console.assert("2 > 3, It cannot be");
6. Console.clear()
console.clear(); //Clears the console.
7. Console.group()
console.group("Errors 1"); 
8. Console.groupend()
console.groupend(); 
9. Console.time()
console.time(); 
10. Console.timeEnd()
console.timeEnd(); 
11. Console.warn()
console.warn("some warning"); 

No comments:


Powered by Blogger.