I’m working with the newest Version of Dreamweaver.
I created a html file with corresponding css file and a javascript file. That worked fine but in my javascript file some things like let
aren’t recognized by dreamweaver and are shown as an error.
The following code for example:
var questions = [{ id: 0, text: "Question 1" }];
var answers = [{ id: 0, text: "Answer 1", question: 0 }, { id: 1, text: "Answer 2", question: 0 }];
function getAnswers(question) {
return answers.filter(x => x.question == question.id);
}
Shows following error for the x => x: ERROR: Parsing error: Unexpected token >
.
I guess it has something to do with the javascript version dreamweaver is using.
How do I change that so that my code shows no error?