Glauco Pater
1 min readMar 8, 2019

--

Thanks for the article Joe. My two cents about this topic, maybe trivial but I am not so sure…

We know that function parameters are passed by values in JS, but it is not said anyway that are also passed as “implicit” let in the direct scope of the function.

I.e.

function f(x,y){

let x = 100; // this raises a syntax error as x is already defined

if(y){ let y = 200;}

return x+y;

}

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Glauco Pater
Glauco Pater

Written by Glauco Pater

Berlin Expat, Engineering Manager and Tech Lead

No responses yet

Write a response