Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Weird syntax errors in dreamweaver

Guest
Mar 29, 2017 Mar 29, 2017

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!

683
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Mar 29, 2017 Mar 29, 2017

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).

Translate
Mentor ,
Mar 29, 2017 Mar 29, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 29, 2017 Mar 29, 2017
LATEST

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).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines