How to run a .js file?

Hello,
I want to run a .js file from this link. I used https://playcode.io/ website, but I can’t see the output.
Any idea?

Thanks.

Well a Localization file is just going to be a bunch of strings, there wont be any output directly.

Hello,
Thank you so much for your reply.
I don’t know JavaScript and I have two questions:
1- How can I print each Original text: '{key}: {value}'?
2- How can I set the whole file RTL (Right-to-left)? Which one is OK and where should it be placed in the file?
document.body.style.direction = "rtl";
OR
document.body.setAttribute('dir', 'rtl')

Hello,
I used document.body.style.direction = "rtl"; at the beginning of the file and it is OK.
When I use console.log(statusConnecting), then it showed me Expected "}" but found "." error. How to solve it?

Thanks.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.