Forbrukslån Søknad | Sähkövertailu | Bruk av Kredittkort | Billigste Strøm | Beste Hjemmealarm | Hundeforsikring | Mobilselskaper | Billigste Eiendomsmegler 2018
JavaScript programming

Single line comment JavaScript

Written by Tusher

Comments are two common ways of writing a single line of JavaScript comments and multi-line comments. The script is written in a statement to temporarily neutralize statement or to provide some information about the statement is used for single-line comments. // The common method is to use a double salsa mark. Comments must start from the need to use the symbol // Double salsa

A program written in JavaScript comments:

body{background: #FFC;

<script type = “text/javascript”>
alert(“Good morning”);//alert box will show Good morning.
document.write(“It is morning.”);
document.write(“You should learn JavaScript now.”);
document.write(“Visit and start to learn JavaScript.”);


Notepad: to open a file type from the menu at the top of layer code by clicking on the Save as File name: index.html, Save as type: All files, save and open the index.html file with the Mozilla Firefox look like the image shown below.

It is morning.You should learn JavaScript now.Visit and start to learn JavaScript.


About the author