I have been using JS policy a lot in case i need to satisfy a use case that can't be done via policies. I had restricted myself to using "var" when it comes to declaring or instantiating variables. Recently, I found that we can use ES6 coding standards in JS policy and I started using "let" and "const" key words and ran into the following problems:
Please help me to understand, what exactly is happening here? @Dino-at-Google
No it doesn't .
the JS policy does not support ES6.
It's EcmaScript 1.7.
No let, const.
No typed arrays
No spread / rest operators
No arrow functions/lambda notation .
I have been using "const" in many JS policies to describe the global variables and it works. Problem occurs when using them inside blocks.
I am surprised! but anyway the JS callout is not ES6.
So you probably need to use var statements, inside blocks.
Yeah I will do that. You can also check, things I said about using "const".
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 |