Sep 13, 2018

JavaScript Output

JavaScript can output data in different ways:


  1. Writing into an alert box, using window.alert().
  2. Writing into the HTML output using document.write().
  3. Writing into an HTML element, using innerHTML.
  4. Writing into the browser console, using console.log().