From 9d6336761959440c482e30e327b5d276ab4dbdac Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Fri, 12 Jan 2018 18:50:58 +0100 Subject: [PATCH] function syntax fix Fix bug on console.log It was returning undefined and should return 3 --- public/examples/es2015/destructuring.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/examples/es2015/destructuring.js b/public/examples/es2015/destructuring.js index eddc177..ec3aa13 100644 --- a/public/examples/es2015/destructuring.js +++ b/public/examples/es2015/destructuring.js @@ -12,7 +12,7 @@ function f( [a,b] ) { return a + b; } -console.log( f[1,2] ); +console.log( f([1,2]) ); // Computed properties (see object literal) can also be used // in object destructuring