|
1 | | -##Regular expressions (RegExp): |
| 1 | +## Regular expressions (RegExp): |
2 | 2 | a way to describe patterns in string data. They form a small, separate |
3 | 3 | language that is part of JavaScript and many other languages and tools. |
4 | 4 | RegExps are a powerful tool for inspecting and processing strings. |
5 | 5 | Properly understanding regular expressions will make you a more effective |
6 | 6 | programmer. |
7 | 7 |
|
8 | | -##Events: |
| 8 | +## Events: |
9 | 9 | there is different types of events - browser, mouse, keyboard, focus |
10 | 10 | events. It is a signal from related source that something has happened. |
11 | 11 |
|
12 | | -##Event handlers: |
13 | | - They are JavaScript code that are not added inside the <script> tags, but |
| 12 | +## Event handlers: |
| 13 | + They are JavaScript code that are not added inside the `<script>` tags, but |
14 | 14 | rather, inside the html tags, that execute JavaScript when something |
15 | 15 | happens, such as pressing a button, moving your mouse over a link, submitting |
16 | 16 | a form etc. |
17 | 17 | Example - `onClick` is an event handler: |
| 18 | + |
18 | 19 | ``` |
19 | 20 | <button name="submit" onclick="validateForm(event)"> |
20 | 21 | Send your letter to Santa |
|
23 | 24 | More on event handlers you can read here: |
24 | 25 | http://www.javascriptkit.com/javatutors/event1.shtml |
25 | 26 |
|
26 | | -##Event.preventDefault: |
| 27 | +## Event.preventDefault: |
27 | 28 | Prevents default behaviour of the events. |
28 | 29 |
|
29 | | -##Refactoring: |
| 30 | +## Refactoring: |
30 | 31 | is the process of restructuring existing computer code - changing the |
31 | 32 | factoring - without changing its external behavior. Refactoring improves |
32 | 33 | nonfunctional attributes of the software. |
33 | 34 |
|
34 | | -##Objects: |
| 35 | +## Objects: |
35 | 36 | stand-alone entities that have properties/type and functions |
36 | 37 |
|
37 | | -##Constructors: |
| 38 | +## Constructors: |
38 | 39 | function that creates and initializes an object.The 'new' operator is used |
39 | 40 | to create an instance of an object |
40 | 41 |
|
41 | | -##Dot-notation: |
| 42 | +## Dot-notation: |
42 | 43 | uses dot operator '.' to access the properties of an object |
43 | 44 |
|
44 | | -##Bracket-notation: |
45 | | - uses the '[]' operator to access the properties of an object |
| 45 | +## Bracket-notation: |
| 46 | + uses the "`[]`" operator to access the properties of an object |
46 | 47 |
|
47 | | -##Callback: |
| 48 | +## Callback: |
48 | 49 | A function that we pass inside of another function as an argument |
49 | 50 | Example: |
| 51 | + |
50 | 52 | ``` |
51 | 53 | var a = ['a', 'b', 'c']; |
52 | 54 | |
|
55 | 57 | }); |
56 | 58 | ``` |
57 | 59 |
|
58 | | -##Local storage: |
| 60 | +## Local storage: |
59 | 61 | function which allows the web pages to store information locally on to the |
60 | 62 | client's web browser using key-value notation |
61 | 63 |
|
62 | | -##Serialize an object : |
| 64 | +## Serialize an object : |
63 | 65 | converting an object to a string format. JSON.stringify() function is used |
64 | 66 | to serialize an object |
65 | 67 |
|
66 | | -##Deserialize: |
| 68 | +## Deserialize: |
67 | 69 | converting a string to an object. JSON.parse() function is used to deserialize |
68 | 70 | an object |
69 | 71 |
|
70 | | -##JSON: |
| 72 | +## JSON: |
71 | 73 | (JavaScript Object Notation) is a lightweight data-interchange format. It |
72 | 74 | is easy for humans to read and write. It is easy for machines to parse and |
73 | 75 | generate. It is a way to store information in an organized, easy-to-access manner. |
74 | 76 |
|
75 | | -##Math: |
| 77 | +## Math: |
76 | 78 | The JavaScript Math object allows you to perform mathematical tasks on numbers. |
77 | 79 | It has properties and methods for mathematical constants and functions. |
78 | 80 | Pi number, calculate sin, cos, random etc. |
79 | 81 |
|
80 | | -##AJAX: |
| 82 | +## AJAX: |
81 | 83 | (Asynchronous JavaScript and XML) With it you can: |
82 | 84 | - Update a web page without reloading the page |
83 | 85 | - Request/receive data from a server - after the page has loaded |
84 | 86 | - Send data to a server - in the background |
85 | 87 |
|
86 | | -##Asynchronous JavaScript |
| 88 | +## Asynchronous JavaScript |
87 | 89 | Use callbacks to run functions asynchronously. |
0 commit comments