Knowledge Walls
Ammu
Hyderabad, Andhra Pradesh, India
Passcode:
JavaScript Output in Examples of Javascript 1
910 Views
Types 
  • Writing into an HTML element, using innerHTML.
  • Writing into the HTML output using document.write().->to write values and strings
  • Writing into an alert box, using alert().->alert messages
  • Writing into the browser console, using console.log().->f12-> to find logs
Example
<!DOCTYPE html>
    <html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <title>internal</title>
        <script>
            alert("hello");
        </script>
    </head>
    <body>
        <script>
            document.write("welcome");
            document.write(10+5);
            console.log("hello");
            alert("hello");
        </script>
    </body>
</html>
Next Topics
Next lessons of current book.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Best Lessons of "Javascript 1"
Top lessons which are viewed more times.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details