[program-l] Re: JavaScript: var and let keywords

  • From: Florian Beijers <florianbeijers@xxxxxxxxx>
  • To: program-l <program-l@xxxxxxxxxxxxx>
  • Date: Thu, 7 Apr 2022 20:53:13 +0200

Yup. Var was essentially the old way of doing things which has almost
completely been replaced by the new let vs const.

Florian

Op do 7 apr. 2022 om 20:38 schreef Jim Homme <jhomme@xxxxxxxxxxxxxxxxx>:

Hi,

I’m reading Beginning JavaScript by Russ Ferguson from BookShare. In
Chapter 3 on variables he has examples of var, let, and he talks about
variable scope and variable hoisting. It seems to me that I should usually
use the let keyword to avoid hard to catch bugs. Is this correct?



Thanks.



Jim



==========

Jim Homme

Senior Digital Accessibility Consultant

Bender Consulting Services

412-787-8567

https://www.benderconsult.com/

Support the dreams of independence through employment for students with
disabilities with your Amazon purchases.

https://smile.amazon.com/ch/83-0988251



Other related posts: