You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,9 +37,9 @@
37
37
38
38
-**Primitives**: When you access a primitive type you work directly on its value
39
39
40
-
+`string`
41
-
+`number`
42
-
+`boolean`
40
+
+`String`
41
+
+`Number`
42
+
+`Boolean`
43
43
+`null`
44
44
+`undefined`
45
45
@@ -53,9 +53,9 @@
53
53
```
54
54
-**Complex**: When you access a complex type you work on a reference to its value
55
55
56
-
+`object`
57
-
+`array`
58
-
+`function`
56
+
+`Object`
57
+
+`Array`
58
+
+`Function`
59
59
60
60
```javascript
61
61
var foo = [1, 2],
@@ -1087,14 +1087,15 @@
1087
1087
1088
1088
## <a name='modules'>Modules</a>
1089
1089
1090
+
- The module should start with a `!`. This ensures that if a malformed module forgets to include a final semicolon there aren't errors in production when the scripts get concatenated.
1090
1091
- The file should be named with camelCase, live in a folder with the same name, and match the name of the single export.
1091
1092
- Add a method called noConflict() that sets the exported module to the previous version.
1092
1093
- Always declare `'use strict;'` at the top of the module.
0 commit comments