Followers

Total Pageviews

Translate

Tuesday, November 12, 2019

Java Script

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

  1. abstract               
  2. arguments         
  3. await* 
  4. boolean
  5. break   
  6. byte      
  7. case      
  8. catch
  9. char      
  10. class*   
  11. const    
  12. continue
  13. debugger           
  14. default
  15. delete  
  16. do
  17. double 
  18. else       
  19. enum*
  20. eval
  21. export*
  22. extends*            
  23. false     
  24. final
  25. finally   
  26. float      
  27. for         
  28. function
  29. goto      
  30. if            
  31. implements       
  32. import*
  33. in           
  34. instanceof          
  35. int          
  36. interface
  37. let*       
  38. long      
  39. native  
  40. new
  41. null        
  42. package              
  43. private 
  44. protected
  45. public
  46. return  
  47. short    
  48. static
  49. super* 
  50. switch  
  51. synchronized    
  52. this
  53. throw   
  54. throws  transient             
  55. true
  56. try         
  57. typeof  var         
  58. void
  59. volatile
  60. while    
  61. with      
  62. 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