|
var map, infoWindow, marker; |
As you probably have some idea, var is an ES5 keyword meant to be replaced by let and const. Normally you wouldn't see a mingling of both. You might as well replace all the vars with let and const. You'll have to read up some on const, especially surrounding immutability. Generally you want to use const whenever you can, and let when you need to. For example, once a string or an integer is assigned to a const, that value can never change.
PlugHubs/index.js
Line 3 in 06b001c
As you probably have some idea,
varis an ES5 keyword meant to be replaced byletandconst. Normally you wouldn't see a mingling of both. You might as well replace all thevarswithletandconst. You'll have to read up some onconst, especially surrounding immutability. Generally you want to useconstwhenever you can, andletwhen you need to. For example, once a string or an integer is assigned to a const, that value can never change.