Skip to Content
0

which version of javascript supported in sapui5

Feb 22 at 11:37 AM

64

avatar image
Former Member

which version of javascript is supported in sapui5?

Why am I not able to use "let" keyword in sapui5?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Iftah Peretz
Mar 05 at 12:12 PM
1

Hi,

As for the console error, you need to right click the js file or the project folder and go to "project settings" and then look at the attached image - project-settings.png.

As for the "let" keyword in that same place, under "Validator Configuration" you need to add to "env" the following - "es6": true - see attached image project-settings2.png.


Share
10 |10000 characters needed characters left characters exceeded
Vaibhav Maheshwari Feb 23 at 04:58 AM
0

Hi Shweta,

Where exactly are you getting the error in using the let keyword ?

Are you using an older browser version ?

I am successfully able to use it using Web IDE.

Thanks,

Vaibhav


code.png (20.6 kB)
console.png (8.5 kB)
Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 05 at 04:51 AM
0

screenshot.png

Its working. But my controller is red marked and complaining that this keyword is reserved for the future uses. I am using google chrome latest version - Version 64.0.3282.186 (Official Build) (64-bit) as far as I know. Even usually if I use console.error or log I get red mark while I can see you get only warning.

Thanks,

Shweta


screenshot.png (30.1 kB)
Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 06 at 09:16 AM
0

screenshot-12.png

Thank you, It worked for me , but I am noticing the red mark on file name. Can we get it removed. I have attached the file.


screenshot-12.png (39.7 kB)
Share
10 |10000 characters needed characters left characters exceeded