1 Javascript - Switch Statement Mon Mar 19, 2012 5:06 am
Mr.Joker
Mr. WebArtz
Javascript - Switch Statement Working with swtch-case in JavaScript |
Hello guys, I am Mr.Joker and today I will teach you how to use switch with javascript. So what for is switch? Let me give you an example. We all know that there is sex as male and female. So, what for is switch there? Every male or female have names, like John, Bill, Mike, and so on. I use switch to manage different possibilities. Here is a example so you understand it better:
|
Notice : This tutorial is copyrighted by WebArtz Forum. You may not publish it on anywhere without written permission from the administrators. |