![]() |
|
#1
|
||||
|
||||
enum in JavaScriptI would like to do a C++ like enum in JavaScript. As far as I can tell, there's no built in way of doing it. I'm wondering if there's a standard way of doing the equivalent of an enum.
This is what I've come up with: Code:
This is suppose to be the equivalent of: CPP / C++ / C Code:
The entire file is located here. It's a binary calculator. Thanks! |
Recent GIDBlog
First week of IA training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| We're looking for JavaScript codes / mini tutorials. | JdS | Web Design Forum | 7 | 31-Mar-2008 23:25 |
| Alternatives to programming in javascript and HTML | Salil | Web Design Forum | 5 | 10-Mar-2006 22:37 |
| An Introduction to Javascript | JasonMichael | Web Design Forum | 2 | 24-Oct-2004 10:19 |
| javascript menu | dopee | Web Design Forum | 7 | 30-Jul-2004 23:22 |
| JavaScript Tutorial Part 1 | pcxgamer | Web Design Forum | 2 | 01-Dec-2003 09:16 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The