Let's get started! 🔥🔥🔥 In this video, we will show you different ways to display data using JavaScript: We can write data into an HTML element, into the HTML directly, into a pop-up alert box, into the browser's console, as well as clicking a button to print the web page! You will learn some web development basics in less than 5 minutes!
In this video, you will learn how to:
★ 0:33 Use innerHTML to write data into an HTML element
★ 1:21 Use document.write() to write data into the HTML
★ 2:21 Use window.alert() to write data into an alert box
★ 3:08 Use console.log() to write data into browser's console
★ 3:43 Use window.print() to print the content of the current window.
Tips and Tricks:
► It's fairly common to use the innerHTML property of an HTML element to display data in the HTML.
► The document.write() method should only be limited to testing.
► Never display sensitive data in console.log() and only use it for debugging purposes.
► Specifying the window keyword for its methods, such as "window".alert(), is optional since it is a global scope object.
🌐 WATCH MORE WEB DEVELOPMENT TUTORIALS
• 🌐 Web Development for Beginners
For the setup, please read the followings before you begin:
1. Download and install latest Visual Studio Code: https://code.visualstudio.com/Download
2. Install the Open in Browser extension for Visual Studio Code: Go to View and select Extensions, or select the Extensions icon, then search for "open in browser", published by TechER.
HTML - Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser.
CSS - Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in HTML.
JavaScript - JavaScript (JS) is a programming language that enables interactive web pages and is an essential part of web applications.
👇 SUBSCRIBE TO CODING WITH KIDS 👨🏻💻👩🏻💻 YOUTUBE CHANNEL NOW 👇
https://youtube.com/CodingWithKids?su...
#CodingWithKids #JavaScript #WebDevelopment
On this page of the site you can watch the video online How to Code JAVASCRIPT: *JavaScript Output in HTML* with a duration of hours minute second in good quality, which was uploaded by the user Coding With Kids 12 August 2021, share the link with friends and acquaintances, this video has already been watched 39 times on youtube and it was liked by 3 viewers. Enjoy your viewing!