Why aren't you allowed to use enum? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why aren't you allowed to use enum?

As long as the users do use Chrome it will work, because Chrome doesn't understand it. You have to use var name ={0:"hi", 1:"chrome is shit"}

7th Dec 2017, 7:29 PM
End Archer
End Archer - avatar
8 Answers
+ 1
I know it's really you Bill, you don't have to hide. Just get over it, no one is going to use IE (Sorry, "Edge") or Bing other than to download Chrome or Firefox. Get over it already Mr. Gates. All jokes aside. Chrome is one of the better browsers. However, welcome to the wonderful world of web design! :) This was/is my least favorite aspect of web development. Unfortunately, everyone is allowed to do things however they see fit with their browsers and aren't forced to a particular standard to eliminate this annoyance. Maybe you guys can be the generation to fix our mistake? :)
7th Dec 2017, 7:38 PM
AgentSmith
+ 1
And.... HOW CAN SAY CHROME ISNONE OF THE GOOD BROWSERS. EVEN SAMSUNG'S MOBILE BROWSER IS BETTER. YES MOBILE BROWSER. chrrm..... sorry but that had to come out.😂
7th Dec 2017, 7:43 PM
End Archer
End Archer - avatar
+ 1
I know, that's why I was joking around with you as well. :) I wasn't speculating which ones does or doesn't support enum. My only point and purpose was to point out why web development can be annoying, and it's because of the lack of standards forced between browsers, and thus you have to accommodate for all of the various browsers people use. Outside of enums, it's hit & miss between them, and often you have to do the exact same thing 3 different ways just to make sure it works between browsers. Nothing worse than a website that tries to force you to use a particular browser. Chrome is usually very forward thinking with the things that they do, and it usually reveals itself later as to why they did some questionable things previously. Google is always focused on how things will line up later.
7th Dec 2017, 7:47 PM
AgentSmith
+ 1
lolol Chrome not having enums is hardly a reason for me to think it's a bad browser. :D You can easily create enums without it being built in or supported by the browser. For myself, Chrome is fast and supports everything I need to do better than the others. The only other browser that I would consider using is Firefox and for the same reasoning. Which browser do you use? Also, why do you dislike Chrome? (other than the enum thing)
7th Dec 2017, 8:29 PM
AgentSmith
0
That just was a joke and Edge does support enum by the way.
7th Dec 2017, 7:41 PM
End Archer
End Archer - avatar
0
As well as any other browser but not Chrome
7th Dec 2017, 7:41 PM
End Archer
End Archer - avatar
0
Thats not the only reason. Chrome just has a bad UI. Thats what I think.
8th Dec 2017, 4:41 AM
End Archer
End Archer - avatar
0
hey there. I need to get the value of an inpuz into a variable and back into the input. https://code.sololearn.com/WfMaVx3sZt56/?ref=app
9th Dec 2017, 11:28 PM
End Archer
End Archer - avatar