Skip to main content

Hi All,

 

I am trying to migrate a VF page to LWCs and was wondering if LWC javascript files do allow forEach() loops?

I have used them in auraComponents but ESLint is marking my loop as unexpected token when used in LWC javascript in VS Code.

 

I couldn't find any documentation about this.

And, my console.log() statements don't appear in the browser logs but the alert() statements for the same works fine. Note: I did except console and alert statements in eslintrc config file.

 

Thanks

Naga

댓글 2개
0/9000