June 24, 2021


TriStudy Provide Free Online Tutorials about Programming languages,Digital Marketing, web designing, online earning, web hosting, WordPress etc

Learn Java Part 1

javascript first proram

Learn the Basics

Hi, New World!

Welcome to our first javascript tutorial

JavaScript is a very powerful language. which can be used within any browser in the world. javascript is one of the most helpful languages and secured scripted language

When using JavaScript inside the browser, we can change how the page looks like and how it behaves. in this article, we will show you how to write the first javascript program that you can understand easily


You must print out to the console the sentence “Hi, New World!”.


console.log("Hi, New World!");


Hi, New World!

Application of JavaScript

JavaScript is used to create interactive websites. It is mainly used for:

  • Client-side validation,
  • Dynamic drop-down menus,
  • Displaying date and time,
  • Displaying popup windows and dialog boxes (like an alert dialog box, confirm dialog box and prompt dialog box),
  • Displaying clocks etc.

Look How to Write First Program in Actual in Java


document.write("Hello JavaScript by tristudy");
<h2>Welcome to JavaScript</h2>
document.write("Hi JavaScript by tristudy");


Welcome to JavaScript

Hello JavaScript by JavaScrip

Thank You!