I don't understand how the below codes works, can some one help me to understand how this works in JavaScript or why this behaviour ?
5 + + + + + + + + + + + + 2= 7 ( If there is no space between operator this will give you error. )5 + + + + + + + + + + + + - + + 2= 35 - - - 1= 45 - - - + 1= 45 - - - + - - - - - - 1= 45 - - - + - - - - - - - 1= 6. ( If I add one more-then this 6 will become4, adding-will again change it from4to6...6to4)5 + + + + + + + + + + + + * + + 2= This will give you error, so that I can not use multiple*or/in between to numbers.
Please share if there are any other snippets / reference / blog / etc. like this in JavaScript.
NB : I have tested all these things in google chrome console - version 69.0.3497.92 (Official Build) (64-bit)