In many circumstances, let and var can seem to be used interchangeably. This, however, is not the case.
Here’s some great write-ups on stack overflow about the matter:
https://stackoverflow.com/questions/762011/whats-the-difference-between-using-let-and-var
Leave a Reply