update js/l1.js
This commit is contained in:
parent
4da9274da6
commit
55fcb6fb16
1 changed files with 15 additions and 1 deletions
16
js/l1.js
16
js/l1.js
|
|
@ -7,4 +7,18 @@ console.log(x.age);
|
||||||
console.log(x.name);
|
console.log(x.name);
|
||||||
console.log(x.city);
|
console.log(x.city);
|
||||||
let al = ["яблоко", "человек", "бананы"];
|
let al = ["яблоко", "человек", "бананы"];
|
||||||
console.log(al[1]);
|
console.log(al[1]);
|
||||||
|
if(al[1] == "человек") {
|
||||||
|
console.log("сергей");
|
||||||
|
}
|
||||||
|
let i = 0;
|
||||||
|
while(1) {
|
||||||
|
console.log("сергей");
|
||||||
|
i++;
|
||||||
|
if(i < 10) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue