It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
As per coding-style, prefer block-scoped variables using let or const which have better semantics than var.
Since ECMAScript 6, you can create block-scoped vars or constants with the keywords
let or const. These variables/constants are only valid in the code
block where they have been declared.
Consider the following two pieces of code:
if(true){varx="Hello, Stonehenge!";}console.log(x);//prints Hello, Stonehenge! to the console
and
if(true){letx="Hello, Stonehenge!";}console.log(x);//ReferenceError: x is not defined
The variable is not defined otuside of its block. This limits bleeding of
variables into other contexts.
To know more about this ECMA6 feature, look at the MDN pages on
let and
const.
Since ECMAScript 6, you can create block-scoped vars or constants with the keywords
letorconst. These variables/constants are only valid in the code block where they have been declared.Consider the following two pieces of code:
and
The variable is not defined otuside of its block. This limits bleeding of variables into other contexts.
To know more about this ECMA6 feature, look at the MDN pages on let and const.