We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6093a43 commit de0c437Copy full SHA for de0c437
arrow.js
@@ -10,7 +10,7 @@ let foo = ["Hello", "World"];
10
let bar = foo.map(x => x.length);
11
12
// ES5
13
-let bar = foo.map(function(x) { return x.length; });
+var bar = foo.map(function(x) { return x.length; });
14
15
//multiline functions require curly braces
16
//no arguments expect parenthesis
@@ -20,15 +20,15 @@ let foobar = () => {
20
};
21
22
23
-let foobar = function() {
+var foobar = function() {
24
console.log("Hello");
25
console.log("World");
26
}
27
28
-//Returning onbject literal
+//Returning onbject literal. Requires Brackets.
29
let quux = () => ({ "myProp" : 123 });
30
31
//ES5
32
-let quux = function() {
+var quux = function() {
33
return { "myProp" : 123 };
34
0 commit comments