mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-07 07:16:42 +02:00
Fixed ) {
vs ){
inconsistency
This commit is contained in:
@@ -175,14 +175,14 @@ myObj.myFourthKey; // = undefined
|
||||
var count = 1;
|
||||
if (count == 3){
|
||||
// evaluated if count is 3
|
||||
} else if (count == 4) {
|
||||
} else if (count == 4){
|
||||
// evaluated if count is 4
|
||||
} else {
|
||||
// evaluated if it's not either 3 or 4
|
||||
}
|
||||
|
||||
// As does while.
|
||||
while (true) {
|
||||
while (true){
|
||||
// An infinite loop!
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user