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

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Senior Principal, Product Strategy Operations, Cloud Data Analytics

@ Google | Sunnyvale, CA, USA; Austin, TX, USA

Data Scientist - HR BU

@ ServiceNow | Hyderabad, India