Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Use of let instead of const in tutorials

ANSWERED

I noticed that the const declaration is never used in the tutorial apps, whereas let and var are. I’ve gotten const to work but I didn’t know if there was a reason for using let instead (perhaps it’s easier to allocate memory/ reduces mutability checks?) 

Best Answer
1 BEST ANSWER

Accepted Solutions

I've tended to try and keep the examples as simple as possible, for developers of all levels.

 

You can use any language features you choose, and the build process will handle the conversion to ES 5.1 for the device. 

 

If you spot any problems, or have feedback about a specific example we'd love to hear about it.

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

I've tended to try and keep the examples as simple as possible, for developers of all levels.

 

You can use any language features you choose, and the build process will handle the conversion to ES 5.1 for the device. 

 

If you spot any problems, or have feedback about a specific example we'd love to hear about it.

Best Answer
0 Votes