About Lesson
Introduction:
A Web console is a tool which is mainly used to log information associated with a web page like: network requests, JavaScript, security errors, warnings, CSS etc. It enables us to interact with a web page by executing JavaScript expression in the contents of the page.
Console object:
In JavaScript, the console is an object which provides access to the browser debugging console. We can open a console in web browser by using: Ctrl + Shift + I for windows and Command + Option + K for Mac.
The console object provides us with several different methods, like :
- log()
- table()
- error()
- warn()
- clear()
- time()and timeEnd()
Exercise Files
No Attachment Found
Join the conversation