repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
2010-03-06 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git]
/
jtests
/
switch.js
blob
88c2c5068a7138fe0e5035fe677a653ee6b8fc58
1
var x = "b";
2
3
switch (x) {
4
case "hola":
5
print ("matched hola");
6
print ("Oh i rock");
7
case "a":
8
print ("matched a");
9
case "b":
10
print ("matched b");
11
case 1:
12
print ("matched 1");
13
default:
14
print ("blah this is default");
15
print ("this is default too ;-)");
16
case "afterDefault":
17
print ("matched after default");
18
}