Содержание
- 2. What Is JavaScript? JavaScript is a high level programming language used to create interactive effects within
- 3. The JavaScript Language Scripting Language Interpreted Untyped Multi-Paradigm – Object-Oriented, Imperative, Functional
- 4. What is ECMAScript? ECMAScript is a trademarked scripting-language specification and standard Standardized by Ecma International Implementations
- 5. Versions ES5 - Standardized in 2009 implemented fairly completely in all browsers ES6 / ES2015 –
- 6. JavaScript Syntax Set of rules for how JavaScript programs are built JavaScript uses most of the
- 7. JavaScript Output console.log(‘some value’) – Prints to console in browser or terminal window.alert() – Displays in
- 8. Variables Variables are used to store values JavaScript uses the “var” keyword to declare variables and
- 9. Expressions An expression is a combination of values, variables and operators which computes a value 2
- 10. Comments Single Line Comment var x = 5; // This is a single line comment Multi
- 11. Arrays JavaScript arrays allow us to store multiple values in a single variable var names =
- 12. Loops Execute a block of code as long as a condition is true and repeat For
- 13. Objects Almost everything in JS can be considered an “object”. Objects have properties and methods (functions)
- 14. Conditionals / If Statements Runs a block of code if something is true var x =
- 15. Switch Selects one of many blocks of code to execute. Often used as an alternative for
- 16. Function Block of code designed to run a task. Can be created and then invoked later
- 18. Скачать презентацию