Java Script

- JavaScript, often abbreviated as JS, is a high-level, interpreted scripting language that conforms to the ECMAScript specification. JavaScript has curly-bracket syntax, dynamic typing, prototype-based object-orientation, and first-class functions.
- Developer: Netscape Communications Corporation, Mozilla Foundation, Ecma International
- First appeared: December 4, 1995
- Typing discipline: Dynamic, duck
- Designed by: Brendan Eich
- JavaScript is the programming language of HTML and the Web.
- JavaScript is easy to learn.
- JS is Case Sensitive
- JavaScript Runs on Statements
Advantage of Java Script
- JavaScript is a client side language.
- JavaScript is an easy language to learn.
- JavaScript is comparatively fast for the end user.
- Extended functionality to web pages.
- No compilation needed.
- Easy to debug and test.
- Event-Based Programming language.
- Procedural programming capabilities
- Whitespace is Semi Insensitive in JavaScript.

Disadvatage of Java Script
- Client-side Security. Since the JavaScript code is viewable to the user, others may use it for malicious purposes.
- Browser Support. The browser interprets JavaScript differently in different browsers.
- Lack of Debugging Facility.
- Single Inheritance.
- Sluggish Bitwise Function.
- Rendering Stopped.
- JavaScript’s Forgiving Nature is a Weakness
Structure Of java Script
<script>
alert('I am the JavaScript Victim');
</script>
OR
<script src="path/to/javascript.js"> </script>
Keywords Of Java Script
- abstract
- arguments
- await*
- boolean
- break
- byte
- case
- catch
- char
- class*
- const
- continue
- debugger
- default
- delete
- do
- double
- else
- enum*
- eval
- export*
- extends*
- false
- final
- finally
- float
- for
- function
- goto
- if
- implements
- import*
- in
- instanceof
- int
- interface
- let*
- long
- native
- new
- null
- package
- private
- protected
- public
- return
- short
- static
- super*
- switch
- synchronized
- this
- throw
- throws transient
- true
- try
- typeof var
- void
- volatile
- while
- with
- yield

Example of Java Script
<!DOCTYPE html>
<html>
<body>
<h2>Assigning JavaScript Values</h2>
<p>In JavaScript the = operator is used to assign values to variables.</p>
<p id="demo"></p>
<script>
var x, y;
x = 5;
y = 6;
document.getElementById("demo").innerHTML = x + y;
</script>
</body>
</html>
O/P: 11
Uses Of Java Script
- If you know HTML_CSS and JavaScript you can make perfect small website.
- You can create simple web games by using JavaScript.
- You can create cross plateform mobile application with HTML5 _ CSS3 and JavaScript.

No comments:
Post a Comment