Skip to content

Commit 8f06b5a

Browse files
NoognTanya Butenko
authored andcommitted
Markdown formatting (#11)
* Fixed heading formatting so it displays correctly in Github, improved formatting for code blocks * Code formatting for square brackets
1 parent a3f37ee commit 8f06b5a

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

cheat-sheet.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
##Regular expressions (RegExp):
1+
## Regular expressions (RegExp):
22
a way to describe patterns in string data. They form a small, separate
33
language that is part of JavaScript and many other languages and tools.
44
RegExps are a powerful tool for inspecting and processing strings.
55
Properly understanding regular expressions will make you a more effective
66
programmer.
77

8-
##Events:
8+
## Events:
99
there is different types of events - browser, mouse, keyboard, focus
1010
events. It is a signal from related source that something has happened.
1111

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
1414
rather, inside the html tags, that execute JavaScript when something
1515
happens, such as pressing a button, moving your mouse over a link, submitting
1616
a form etc.
1717
Example - `onClick` is an event handler:
18+
1819
```
1920
<button name="submit" onclick="validateForm(event)">
2021
Send your letter to Santa
@@ -23,30 +24,31 @@
2324
More on event handlers you can read here:
2425
http://www.javascriptkit.com/javatutors/event1.shtml
2526

26-
##Event.preventDefault:
27+
## Event.preventDefault:
2728
Prevents default behaviour of the events.
2829

29-
##Refactoring:
30+
## Refactoring:
3031
is the process of restructuring existing computer code - changing the
3132
factoring - without changing its external behavior. Refactoring improves
3233
nonfunctional attributes of the software.
3334

34-
##Objects:
35+
## Objects:
3536
stand-alone entities that have properties/type and functions
3637

37-
##Constructors:
38+
## Constructors:
3839
function that creates and initializes an object.The 'new' operator is used
3940
to create an instance of an object
4041

41-
##Dot-notation:
42+
## Dot-notation:
4243
uses dot operator '.' to access the properties of an object
4344

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
4647

47-
##Callback:
48+
## Callback:
4849
A function that we pass inside of another function as an argument
4950
Example:
51+
5052
```
5153
var a = ['a', 'b', 'c'];
5254
@@ -55,33 +57,33 @@
5557
});
5658
```
5759

58-
##Local storage:
60+
## Local storage:
5961
function which allows the web pages to store information locally on to the
6062
client's web browser using key-value notation
6163

62-
##Serialize an object :
64+
## Serialize an object :
6365
converting an object to a string format. JSON.stringify() function is used
6466
to serialize an object
6567

66-
##Deserialize:
68+
## Deserialize:
6769
converting a string to an object. JSON.parse() function is used to deserialize
6870
an object
6971

70-
##JSON:
72+
## JSON:
7173
(JavaScript Object Notation) is a lightweight data-interchange format. It
7274
is easy for humans to read and write. It is easy for machines to parse and
7375
generate. It is a way to store information in an organized, easy-to-access manner.
7476

75-
##Math:
77+
## Math:
7678
The JavaScript Math object allows you to perform mathematical tasks on numbers.
7779
It has properties and methods for mathematical constants and functions.
7880
Pi number, calculate sin, cos, random etc.
7981

80-
##AJAX:
82+
## AJAX:
8183
(Asynchronous JavaScript and XML) With it you can:
8284
- Update a web page without reloading the page
8385
- Request/receive data from a server - after the page has loaded
8486
- Send data to a server - in the background
8587

86-
##Asynchronous JavaScript
88+
## Asynchronous JavaScript
8789
Use callbacks to run functions asynchronously.

0 commit comments

Comments
 (0)