How to Use the Java Script Code in ui path in UiPath

I have Javascript code , when i am using this code in the inject JS Script i found errors in the code
But it runs good in javascript editors.

How to Resolve this Isssue ?

@VennuSantosh

Can you show us what errors you are facing

Thanks