April 18, 2024, 5:51 a.m. | Akshat Sharma

DEV Community dev.to

Hey reader :) in the last post we have got little introduction about JS. In this post I'll be telling you about how we can display data on screen using JS. So let's get started.


So there are four different ways to display data using JS -:



  1. Writing into an HTML element, using innerHTML.


  2. Writing into the HTML output using document.write().


  3. Writing into an alert box, using window.alert().


  4. Writing into the browser console, using console.log().






1. Using innerHTML ->


Let's …

beginners data element hey html introduction javascript programming reader tutorial writing

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US