Now that you are familiar with functions, let’s learn about some more functions in JavaScript.
In the last video, you learned about two new functions - alert() and clear() in JavaScript.
The function alert() opens a dialog box showing the value that you have passed to the alert function.
The clear() function, on the other hand, just clears all the values that are logged on the console, thus clearing the contents of the Console tab.