Monday, 8 February 2021

JavaScript

 Java Script




  • Java script is a programming language
  • It's makes our Web pages interactive
  • Interpreted Language
  • Java script mostly using in client side
  • Object based language
  • scripting language 
  • Easy to learn
                                Javascript is not a java completely different and they are
                                                             2 languages 

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



Java script fundamentals

  • Variables
  • Arrays
  • Loops
  • Conditions
  • Comparison&operators
  • Objects
  • functions
  • Program flow
  • Data Types
  • Prototypes
  • Events
Usages of Javascript
  • Responsive
  • Interactive
  • Create Cookies
  • Detect user
  • Form Validation
  • Create animations
  • Build apps
  • Slideshow
You can change html attribute value ans css style by javascript

 import javascript
In HTML, JavaScript code is inserted between <script> and </script> tags.


JavaScript Display Possibilities

JavaScript can "display" data in different ways:

  • Writing into an HTML element, using innerHTML.
  • Writing into the HTML output using document.write().
  • Writing into an alert box, using window.alert().
  • Writing into the browser console, using console.log().

No comments:

Post a Comment