The differences between these three variables made me confused when I started to use ECMAScript 6. The most confusing was to understand the difference between let and var.
So let’s try to explain this difference.
var a = 'I am var';
const b = 'I am const';
let c = 'I am let';
What are the differences?
At first, let’s explain the concept of scope.
The scope is the fundamental concept in all programming languages that defines the visibility of a variable.
The variables can be globals or locals.
To know the difference continue reading the article on Medium
https://medium.com/notonlycss/difference-between-var-let-and-const-in-es6-1d69f29586ff
Top comments (5)
I would advice to import the article here instead of link the article on Medium.
I find links to Medium extremely offending :)
and not gonna click on this pay 5$ absurd money wanna be network.
Keep in mind cross posting for medium and even here is ok, so you can post on both networks.
I started just now, here the friend read for free reading medium.com/notonlycss/difference-b...
Thanks, for your feedback!
thanks but Medium is bad for code btw:
dev.to markdown is so so much better I love it.
Also Medium itself has a functionality to IMPORT an article from another source.
So my advice is to put posts here and then import them to medium if you believe you have bigger audience there.
I do not agree, I think that the editor of Medium is much more intuitive and user-friendly.
hmmm for a non developers yes for sure.. it has pictures :)
and Medium is GREAT for writers.
but for developers... markdown and asciidoc are so so more productive and powerful and fast.. :) and they are everywhere !
Also the dev.to writer has amazing liquid tags like
how can you do that in medium ? :) I dont know maybe for just writing without code, integrations, only for formatting maybe medium is great however I am far faster at writing underscores or single underscore and etc. here without a mouse compared to there.
P.S. Using a mouse for writing is simply wrong :) yes even for formatting.