Using objects in JavaScript. Accessing DOM in JavaScript презентация
Содержание
- 2. Agenda Program flow control Collections Custom objects Constructors Context and
- 3. Conditions: if-else Syntax: if (condition) statement1 [else
- 4. Conditional (Ternary) Operator ?: Syntax: condition ? expr1 : expr2
- 5. Loops: for
- 6. Loops: while and do-while
- 7. Loops: keywords break and continue There are two keywords for
- 8. Switch Switch statement allows to select one of many blocks of
- 9. Collections Collection is a set of variables grouped under common name.
- 10. Array: processing Usage of arrays: var array = [] //
- 11. Array: features Arrays in JavaScript differ from arrays in classical languages.
- 12. Array: useful methods
- 13. Iterating an Array
- 14. Dictionary Dictionaries allow us to have set of data in form
- 15. Using Dictionary Usage of dictionaries tables is very similar to arrays:
- 16. Array vs Dictionary Use Array for collections with digital indexes. Use
- 17. Object creation You know that we can create a simple object
- 18. Object or Dictionary But this way it looks like hash table
- 19. Object or Dictionary Typically we use hash table if we want
- 20. Difference in use
- 21. Constructors Sometimes we need to create more than one single object.
- 22. Constructors: example
- 23. BOM and DOM
- 24. Description How JavaScript communicates with the world? In outline this mechanism
- 25. Event handling But JavaScript doesn't observe events by default. You should
- 26. Inline handling
- 27. Using of onevent attribute
- 28. Proper ways
- 29. Proper ways
- 30. Bubbling and Capturing
- 31. Bubbling and Capturing
- 32. Event object For every event in the browser instance of Event
- 33. Control of Default behavior Sometimes a default scenario of event processing
- 34. Sample
- 35. Practice Task
- 36. Advanced
- 38. Context Let's imagine two identical objects. They are created by
- 39. Context If we call method run() for both cats, we’ll take
- 40. Context It works because we use the next form of access
- 41. Loss of context Be careful! There are situations when you can
- 43. Basic info Free space in browser sandbox is allocated for each
- 44. Scope The scope is a special JavaScript object which was created
- 45. Scope
- 46. Value-types and Reference-types Unfortunately some objects are too large for scope.
- 47. Memory cleaning The basic idea of memory cleaning: when function is
- 48. Unreachable links An object is considered unreachable if it is not
- 49. Unreachable links
- 51. Closure If scope is an object and it is not deleted
- 52. Example
- 53. Contacts
- 54. Скачать презентацию
Слайды и текст этой презентации
Скачать презентацию на тему Using objects in JavaScript. Accessing DOM in JavaScript можно ниже: