Timeline for Basic JavaScript counter
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 27, 2016 at 19:10 | comment | added | yitzih |
@ggordon for most people it is easier to read a switch statement rather than a group of if-else statements. You are doing it based off the value in a variable as opposed to multiple conditions so a switch is well suited here.
|
|
Sep 27, 2016 at 19:07 | comment | added | ggordon |
One more question, why is using the switch statement preferable?
|
|
Sep 27, 2016 at 19:05 | comment | added | ggordon | Love the idea of using ASCII, really helpful - thanks! | |
Sep 27, 2016 at 19:04 | vote | accept | ggordon | ||
Sep 27, 2016 at 19:02 | history | edited | yitzih | CC BY-SA 3.0 |
added 15 characters in body
|
Sep 27, 2016 at 18:43 | history | answered | yitzih | CC BY-SA 3.0 |