JavaScript

Step 9: Verify that clicking the button calls the function by adding the following in the function:
console.log(`hello world`)
The function should look like:
function doSomething() {
  console.log(`hello world`)
}
Refresh your webpage, and open the console by clicking the wrench in the top right of the Preview window. Click the button on the page, and the message should appear in the console in the bottom right.
Last step Next step