0

Is it a keyword?

Why is operator highlighted in js? Is it a keyword?

3rd Jan 2020, 2:27 PM
IlyaVerem
IlyaVerem - avatar
5 Answers
3rd Jan 2020, 2:35 PM
IlyaVerem
IlyaVerem - avatar
+ 1
Where you see this? Show me the code?
3rd Jan 2020, 2:28 PM
Ipang
+ 1
I'm using SoloLearn app for Android 5
3rd Jan 2020, 2:46 PM
IlyaVerem
IlyaVerem - avatar
+ 1
IlyaVerem I tried to search for possible answer to this doubt. But unfortunately I cannot find any result that makes sense. Operator overloading is not available in JS. And AFAIK it is not available even in Java, and I didn't see `operator` in the list of reserved keywords in here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords Nor in here (less detailed) https://www.w3schools.com/js/js_reserved.asp Without trying to conclude anything, my only *guess* is that it is *possibly* a part of syntax highlighting feature works (as ~ swim ~ said) of code editor. P.S. Even on Android 4.4 I see that `operator` word gets highlighted, I don't suppose it has anything to do with Android, or any O/S for that matter : )
3rd Jan 2020, 4:15 PM
Ipang