What a game with comparison operators?

Took just a little test with JS.
There came upon one question, and generally dulled odd.
59d0a46fad214473033665.png
A little doganyaesh, in JS there is no operator '=>' or '=<', but only '>=' and '<='. Not news to me, of course, that in this world any mysticism going on, but there's no word. Explain what I don't know.

What it is only in such works, clean compare console throws the error.
June 14th 19 at 20:59
5 answers
June 14th 19 at 21:01
Solution
The operators <= and >= are responsible for the comparison. You need to remember that the equal sign is at the end. It is possible to speak about itself "greater than or equal to", i.e. the order in which you speak, in this order marks and go.

=> operator to create lambdas. We must remember that he like an arrow from the name "arrow function". To this statement there is a parameter list (can be in parentheses, and if the parameter is single, then you can without parentheses) after the function body in curly brackets or just return functions without parentheses.
June 14th 19 at 21:03
Solution
el => el < 2; / / is a function!

function(el) { return el < 2 }


el => el => 1;

function(el) {
 return function(el) {
 return 1
}
}
understood thanks, I didn't catch) - florine_Colli commented on June 14th 19 at 21:06
remember that this design has its own characteristics. For example, there is no such function context and arguments object. - matt_Bahringer commented on June 14th 19 at 21:09
about arrow functions I know, it's just a record I first saw it, so confused) - florine_Colli commented on June 14th 19 at 21:12
June 14th 19 at 21:05
And what of the comparison operators => and =< such? All I know JAP is <=, >=.
June 14th 19 at 21:07
Oh... I know about the comparison operators and what they have. your link didn't solve my problem - florine_Colli commented on June 14th 19 at 21:10
June 14th 19 at 21:09

Find more questions by tags JavaScript