JavaScript Basic Concept

JavaScript is the world’s most popular programming language.

Why Study JavaScript?

JavaScript is one of the 3 languages all web developers must learn:

1. HTML to define the content of web pages

2. CSS to specify the layout of web pages

3. JavaScript to program the behavior of web pages


<!DOCTYPE html>
<html>
<body>

<h2>JavaScript in Body</h2>

<p id=”demo”></p>

<script>
document.getElementById(“demo”).innerHTML = “My First JavaScript”;
</script>

</body>
</html>


 

<!DOCTYPE html>
<html lang=”en”>
<head>
    <meta charset=”UTF-8″>
    <meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
    <title>JakaFind</title>
</head>
<body>
    <p id=”nur”></p>
    <script>
document.getElementById(“nur”).innerHTML=”JakaRiaa”;
console.log(“Jakaria”);
let a=’Jaka’;
console.log(a);
function nur1(abc){
    console.log(`Hello ${abc}`);
}
nur1(‘Rifat’);
var b = 5;
console.log(b);
var ja =’Jakaria’;
console.log(ja);
var i;
for(i=0;i<5;i++){
    document.write(i+”<button>For Loop</button> <br>”);
}
i=0;
while(i<5){
    document.write(i+”<button>For While</button> <br>”);
    i++;
}
i=0;
do{
    document.write(i+”<button>For DO While</button> <br>”);
    i++;
}while(i<5);
    </script>
</body>
<script src=”script.js”></script>
</html>

By Md Jakaria Nur

Software Engineer

Leave a Reply

Your email address will not be published. Required fields are marked *