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 60c0c6b commit 8a1ec16Copy full SHA for 8a1ec16
README.md
@@ -249,7 +249,7 @@ The rest parameter is used to pass zero or more values to a function. It is decl
249
*/
250
function sum(a: number, ...b: number[]): number {
251
let result = a;
252
- for (var i = 0; i < b.length; i++) {
+ for (let i = 0; i < b.length; i++) {
253
result += b[i];
254
}
255
console.log(result);
0 commit comments