Using an external JS library in function node, I'm sure it's easy

For this purpose it doesn't matter if you use var, const or let. The last two are newer JavaScript syntax with the intention of overcoming some peculiarities with var. In general the recommendation these days is to not use var anymore as how it works on certain corner cases can be unexpected.

const means the variable cannot be redefined, so it's suitable to use for library imports or constant values. let behaves pretty much like var without its peculiarities.

More info

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.