JAVASCRIPT Presentation about Javascript language Javascript Java Script

JAVASCRIPT Presentation about Javascript language

Javascript Java. Script is an object-oriented language and the events used in the creation of websites. It was originally developed by Brendan Eich of Netscape Communications initially called Mocha, and subsequently Live. Script, but was later renamed to “Java. Script” and was formalized with a syntax closer to that of the Java language. He is also an interpreted programming language created primarily for the browser.

Javascript Codes and Data Java. Script code can be inserted into an HTML page in three ways: -Inline -A block of code in the page -Using an external file On the inside of the language you can enter 3 types of data: -Numbers es. (var numbers=3) -Strings es. (var person=“Alessandro”) -Boolean Characters es. (var Boolean=True)

Javascript Operators The arithmetic operators such as: + Addition - Subtraction * Multiplication / Division + + Increment -- Decrease And the logical operators: && and | | Or ! not

Javascript Arrays and Matrices So you declare the array : var days=[ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ] So you declare matrices: var matrix=[[0, 1, 2, 3, 4], [0, 2, 4, 6, 8]]

Javascript Functions How to declare functions : function. Name () {. . . } How to call functions of HTML <button type="button“ onclick=“function. Name()"> Press the button < / button>
- Slides: 6