wtfjs icon indicating copy to clipboard operation
wtfjs copied to clipboard

Pull request #201 broke some examples in the English README.md file

Open NeeEoo opened this issue 4 years ago • 1 comments

In example "Adding arrays", the code in the example doesn't work. In example "Addition of RegExps", the code was formatted weirdly causing it not to return the correct result. The original was /7/ - /5/; In example "Double dot", the code was changed from 27..toString() to (27).toString(); in both the explanation and example. In example "Why you should use semicolons", the code from the explanation was copied into the example.

I think that example "Extra Newness" is broken. I also think that example "A generator which yields itself" is broken.

NeeEoo avatar Mar 26 '21 11:03 NeeEoo

It also seems that some examples in the other translations are broken. For example Korean, Italian, Hindi and maybe more.

NeeEoo avatar Mar 26 '21 11:03 NeeEoo