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 97d2b42 commit 4966678Copy full SHA for 4966678
let.js
@@ -1,5 +1,5 @@
1
/**
2
- * let desclares a block scope local variable. let has been in Firefox for a
+ * let declares a block scope local variable. let has been in Firefox for a
3
* long time and is now a part of ES6.
4
* IMPORTANT: If outside any block, let is scoped globally else will be scoped
5
* to nearest enclosing block.
spread.js
@@ -0,0 +1,11 @@
+/**
+ * spread allows you to pass each element of an array as a parameter.
+ */
+
+var list = [1, 2, 3, 4];
6
7
+function foo(i, j, k, l){
8
+ return i*j*k*l;
9
+}
10
11
+foo(...list); // 24
0 commit comments