JAVASCRIPT SCRIPTING LANGUAGE-
Designed by- Brendan Eich.
First appeared -1995
Developer- Netscape Communications Corporation, Mozilla Foundation, Ecma Internationa.
File name extensions - .js
javascript is a client side scripting language which is use for creating dynamic web pages. Javascript is a dynamic computer programming language. whose implementation allow client side script to interact with the user and make dynamic pages. the javascript code is executed when the user submit the form and only if all the entries are valid and they would be submitted to the web server. javascript can be used as button clicks, link navigation, and other actions.
javascript language is use for web development. the drawback of this language is code is visible other users are see the website codes. one of the most important drawback is javascript not create a file. javascript is a platform independent language. required only browser to run or compile. it is easy to learn there function tags opertors etc.
First appeared -1995
Developer- Netscape Communications Corporation, Mozilla Foundation, Ecma Internationa.
File name extensions - .js
javascript is a client side scripting language which is use for creating dynamic web pages. Javascript is a dynamic computer programming language. whose implementation allow client side script to interact with the user and make dynamic pages. the javascript code is executed when the user submit the form and only if all the entries are valid and they would be submitted to the web server. javascript can be used as button clicks, link navigation, and other actions.
javascript language is use for web development. the drawback of this language is code is visible other users are see the website codes. one of the most important drawback is javascript not create a file. javascript is a platform independent language. required only browser to run or compile. it is easy to learn there function tags opertors etc.
FEATURES OF JAVASCRIPT-
- Scripting language.
- Interpreter based.
- Event handling.
- client side technology.
- looping statement.
- Inbuilt function.
- Cliase sensitive.
- Front end .
- Validation.
- Platform inndependent
javascript versions -
Versions Name Release year
1 ECMAScript 1 1997
2 ECMAScript 2 1998
3 ECMAScript 3 1999
4 ECMAScript 4 not release
5 ECMAScript 5 2009
5.1 ECMAScript 5.1 2011
6 ECMAScript 2015
7 ECMAScript 2016
8 ECMAScript 2017
9 ECMAScript 2018
javascript compilers-
- WebStorm
- Komodo Edit
- Visual Studio Code
- Atom IDE
- Brackets
- Babel
javascript most valuable commands-
- document.getElementById()
- Basic Input / Output
- SetTimeout()
- Setinterval()
- ClearTimeout() and ClearInterval()
- Var
- Self-calling Function
- Math.random()
- Map()
- Debounce()
- Poll()
- Once()
- String.replace()
- Array.Push()
- Array.filter()
- Array.reduce()
- String.toLowerCase()
- IsNative()
- String.substr()
- debug(message)
- string.toLowerCase()
- floor()
- constructor()
- Math Object
- JS Date
- toExponential()
- toFixed()
- toPrecision()
- valueOf()
- parseInt()
javascript basic programs-
Q1)write a program in javascript to print hello world.
-->
<html>
<body>
<script>
alert("hello world");
</script>
</body>
</html>
output - hello world
--------------------------------------------------------------
Q2)write a program in javascript to perform addition of two number operation.
-->
<html>
<body onload=show()>
<script>
Function show()
{
a=prompt("enter first number:");
a=prompt("enter first number:");
b=prompt("enter second number:");
c=a+b;
alert("addition is:"+c);
}
</html>
</body>
</script>
output - enter first number: 4
enter second number: 6
addition is:10
-----------------------------------------------------------------
Q3)write a program in javascript to swapping of two number using third variable.
-->
<html>
<body onload=show()>
<script>
Function show()
{
var c;
a=prompt("enter first number:");
b=prompt("enter second number:");
c=a;
a=b;
b=c;
alert("after swapping:"+a);
alert("after swapping:"+b);
}
</html>
</html>
</body>
</script>
output - enter first number: 5
enter second number:3
after swapping:3
after swapping:5
3 Comments
👍👍
ReplyDeleteEk number
ReplyDelete:)
ReplyDelete