If shorthand isn't understandable to the next dev that follows you, it probably ought not to be done. For example, #2 using -- as Math.floor. Besides, it fails in some cases, so it may cause future problems. #4 is iffy on the readability, but I do like it.
Hey, I'm Iftekh and I am a full-stack web developer.
I am here to help people as much as I can to learn to code and I Share my knowledge in order to help people learn more and Fast.🔥
If shorthand isn't understandable to the next dev that follows you, it probably ought not to be done. For example, #2 using -- as Math.floor. Besides, it fails in some cases, so it may cause future problems. #4 is iffy on the readability, but I do like it.
That's why you should read the doc carefully before using anything that prevents breaking. Glad you liked it Thank you for reading.😊