1. Web Design & Development
Batch-02
HACKERS
:-Group:-
2. NAME ID
SHUVO MALAKAR BB-TMSS-070216SYL46
MD.JABED MIAH BB-TMSS-070216SYL47
MD.MUHIT MIAH BB-TMSS-070216SYL48
Group
Member’s
3. JavaScript
JavaScript resides inside HTML documents, and can
provide levels of interactivity to web pages that are not
achievable with simple HTML. Key differences between
Java and JavaScript: Java is an OOP programming
language while Java Script is an OOP scripting language.
4. Establishment
JavaScript was created in 10th May 1995 by Brendan
Eich, then working at Netscape and now of Mozilla.
JavaScript was not always known as JavaScript: the original
name was Mocha, a name chosen by Marc Andreessen,
founder of Netscape. In September of 1995 the name was
changed to LiveScript, then in December of the same year,
upon receiving a trademark license from Sun, the name
JavaScript was adopted.
5. Let’s now discuss about ---------
--------“For & While Loop”--------
“The Loop’s are used when the user’s repeat some statement in a program.”
For Loop:
The For loop is usually used when you need to repeat a given number of times.
<script>
var text = "";
var i;
for (i = 0; i < 5; i++) {
text += "The number is " + i + "<br>";
}
document.getElementById("demo").innerHTML = text;
</script>
The number is 0
The number is 1
The number is 2
The number is 3
The number is 4
6. While Loop
The while loop is usually used to repeat something until a given condition is true.
<script>
var text = "";
var i = 0;
while (i < 10) {
text += "<br>The number is " + i;
I++;
}
document.getElementById("demo").innerHTML = text;
</script>
The number is 0
The number is 1
The number is 2
The number is 3
The number is 4
The number is 5
The number is 6
The number is 7
The number is 8
The number is 9