Hi everyone, I have a (hopefully) quick question. I am working on a project that has come up with an ‘eslint’ Parsing error: Unexpected token, expected ";" for the dateFormatted section in the code below.
I am using vueJS in this part, and have the feeling that I need to fix the data: ()... part, but am currently know lost. Any help would be greatly appreciated!
(p.s. if there is not enough info, let me know… )
The second one is more or less a shorthand for the third one (they’re only applicable in objects though).
The first one is an arrow function. They might also look like a shorthand for a regular function (I guess most of the time they’re used as such), but arrow functions behave differently when the this keyword is involved.