Forbruksfinansiering | Kaiuttimet | Bruk av Kredittkort | Billig Strømleverandør | Billig Husalarm | Sammenlign Forsikringer | Mobilselskaper 2017 | Billig Internett
JavaScript programming

Single line comment JavaScript

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:

<html>
<head>
<title> www.trickbd.com.bd</title>
<style>
body{background: #FFC;
font-size:24px;}
</style>

</head>
<body>
<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 www.trickbd.com.bd and start to learn JavaScript.”);
</script>
</body>

</html>

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

www.trickbd.com.bd and start to learn JavaScript.

 

Comments

comments

About the author

Toriqul Islam Tusher

বলার মত কিছু নাই!

Leave a Comment