Copy link to clipboard
Copied
Hello,
I am receiving a strange syntax error writing JavaScript in Dreamweaver CS6 (version 12).
for (let i of this.roomItems) {
}
for some reason it is saying line 1 is a syntax error, but this doesn't seem right. I think perhaps the syntax definitions maybe out of date, but I can't figure out how to update it for the more modern JavaScript code.
I really like Dreamweaver, but I'm about ready to switch to a different software if I can't resolve this, so please let me know how get Dreamweaver to understand things like "let" and "of".
thanks!
If you are going to use ecma 6 to any degree, only programs produced within the last 12-18 months are likely to offer good support.
It may be worth looking at supplementing CS6, with an open source editor such as Brackets or Visual Studio code, (vs code includes a js debugger, and has an extension for the Chrome browsers dev. tools), before deciding to update to the new version of Dw, (which does not include a debugger and the dev tools).
Copy link to clipboard
Copied
DW CC2017 does not produce a syntax error for javascript let, so one solution would be to upgrade.
Otherwise, knowing your code is correct you can simply ignore the syntax errors.
Copy link to clipboard
Copied
If you are going to use ecma 6 to any degree, only programs produced within the last 12-18 months are likely to offer good support.
It may be worth looking at supplementing CS6, with an open source editor such as Brackets or Visual Studio code, (vs code includes a js debugger, and has an extension for the Chrome browsers dev. tools), before deciding to update to the new version of Dw, (which does not include a debugger and the dev tools).
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more