Initialization in variable declarations against recommended approach JS-0119
Anti-pattern
Minor
5 months agoa year old
Variable 'ip' should be initialized on declaration
 2// of the computer running the
 3// code and stores it in the
 4// variable ip
 5export let ip; 6getPublicIP((ipAddress) => (ip = ipAddress));
 7
 8function getPublicIP(callback) {