denysdovhan / wtfjs

🤪 A list of funny and tricky JavaScript examples
http://bit.ly/wtfjavascript
Do What The F*ck You Want To Public License
34.75k stars 2.55k forks source link

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

Open NeeEoo opened 3 years ago

NeeEoo commented 3 years ago

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 commented 3 years ago

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