fix typo on spread slide

This commit is contained in:
Jeremy Likness 2020-02-11 12:57:22 -08:00
parent 46557eca24
commit 0d09cdd855

View File

@ -8,7 +8,7 @@ const bigger_list = [...list, 8, 13];
<pre class="appear"> <pre class="appear">
const fn = (x, y, z) => x + y + z; const fn = (x, y, z) => x + y + z;
fn(bigger_list); fn(bigger_list);
// "1,1,2,3,5,8,13ndefinedundefined" ([1,1,2,3,5,8,13] + undefined + undefined) // "1,1,2,3,5,8,13undefinedundefined" ([1,1,2,3,5,8,13] + undefined + undefined)
fn(...bigger_list); fn(...bigger_list);
// 4 (1 + 1 + 2) // 4 (1 + 1 + 2)
</pre> </pre>