If babel converts let and const to var, what's the difference?
问题 I've tried the babel transpiler, and it converts All let, const and var to just var, so in all, what's the difference in our code usage? I have read documents and I know what's the difference between let, const and var , but if all of them are eventually converted to var , what's the difference ? it means that there shouldn't be any meaningful differences in performance or even scope! Update (02.14.2019) : Based on the answers I understood that scope does matter and even though they are