4. JavaScript
• JavaScript (JS) is an open • JavaScript is:
source client-side scripting – Prototype-based
language commonly
– Dynamic
implemented as part of a
– Weakly-typed
web browser in order to
– Has First-class functions
create enhanced user
– Influenced by C &
interfaces and dynamic
websites. Java,...
4 | Internal use only
5. Basics
• <script> tag
• var a = 7;
• if, then, else
• for, while
• namespaces
• functions
• web server – Apache, nginx
5 | Internal use only
6. JavaScript world
• BackboneJS • jQuery
• underscore • YUI
• EmberJS • node.js
• CanJS • TypeScript
• MeteorJS • Closure
• EsteJS
6 | Internal use only
7. Tools
• Chrome Developer Tools
• Firebugs
• IE Developer Toolbar
• Opera
• Editor: vim, webstorm,
sublime text, notepad,...
7 | Internal use only
8. A co to ten angulár umí?
• Data binding
• Controller
• Plain JavaScript
• Validation
• Server communication
• Directives
• Injection
• Testing
8 | Internal use only