All Basic Commands in Java Script! - Techies Hub

Breaking

Sunday 10 January 2021

All Basic Commands in Java Script!

 




Hello Readers and from today, I am starting a new series named JavaScript Tutorials. This is the first tutorial of this series in which I am going to tell you about some simple commands. So let's get started:

console.log("Hello World"// For printing statement in console

Name: console.log

Function: Printing something in console:





alert("Hello World"// For a dialoge box in webpage

Name: alert

Function: Creating a additional pop out dialogue






document.write("this statement is written in javascript"// To write something on the webpage

Name : document.write

Function: writing inside a document




console.warn("This is my warning"// to display warning in console
console.error("This is an error"//to display error in console

To display errors and warnings in console






4 comments:

  1. So guys If you Have Any Question You can ask me here you will get guaranteed answers!

    ReplyDelete
  2. What is the importance of error and warning command?? BTW Nice course

    ReplyDelete
  3. Nice course please be consistent 😊

    ReplyDelete