How to Code JAVASCRIPT: *JavaScript Output in HTML*

Publicado el: 12 agosto 2021
en el canal de: Coding With Kids
39
3

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


En esta página del sitio puede ver el video en línea How to Code JAVASCRIPT: *JavaScript Output in HTML* de Duración hora minuto segunda en buena calidad , que subió el usuario Coding With Kids 12 agosto 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 39 veces y le gustó 3 a los espectadores. Disfruta viendo!