+ 1

What does this mean: => or >=

What is the difference and what do they mean: => , >=, I seen this => one in animations (DOM) a lot of times

18th Jun 2019, 5:54 AM
Ginfio
Ginfio - avatar
1 Réponse
+ 2
I think you know, >= is a comparison operator that returns true if the first value is bigger than or equal to the second one. => is used for "arrow functions". It is a shortcut for inlinefunctions. Syntax: const(/let) func = () => { //code } If you only have 1 line of code which is a return value, you can exclude the curly brackets and the return keyword: const twoTimes = x => x * 2;
18th Jun 2019, 6:00 AM
Airree
Airree - avatar