This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="row"> | |
<div class="col-sm-12 col-md-6 col-lg-3"><p>1</p></div> | |
<div class="col-sm-12 col-md-6 col-lg-3"><p>1</p></div> | |
<div class="col-sm-12 col-md-6 col-lg-3"><p>1</p></div> | |
<div class="col-sm-12 col-md-6 col-lg-3"><p>1</p></div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="row"> | |
<div class="col-sm-12 col-md-6 col-lg-3"><p>1</p></div> | |
<div class="col-sm-12 col-md-6 col-lg-3"><p>1</p></div> | |
<div class="col-sm-12 col-md-6 col-lg-3"><p>1</p></div> | |
<div class="col-sm-12 col-md-6 col-lg-3"><p>1</p></div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Account[] accounts = new Account[100]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function callAndLog(a, b, operation) { | |
console.log('Will call operation with params: ' + a + ', ' + b); | |
return operation(a,b); | |
} | |
function add(a,b) { | |
return a+b; | |
} | |
add(2,2); // 2; | |
callAndLog(3,3,add); // 9 (And logs message in console) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>My Html</title> | |
</head> | |
<body> | |
Html | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>My Html</title> | |
<script src="script.js"></script> | |
</head> | |
<body> | |
Html | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+var flight = { | |
+ airline: "Oceanic", | |
+ number: 815, | |
+ departure: { | |
+ IATA: "SYD", | |
+ time: "2004-09-22 14:55", | |
+ city: "Sydney" | |
+ }, | |
+ arrival: { | |
+ IATA: "LAX", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
person['firstName'] // 'John' | |
person.firstName // 'John' | |
obj.first-name // Нельзя | |
obj['first-name'] // 'John' | |
flight.airline.number // 815 | |
flight['airline']['number'] // 815 | |
// Если имя поля динамическое: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var person = { | |
firstName: 'John' | |
}; | |
person.firstName // 'John' | |
person.lastName // undefined | |
person.lastName || 'Snow' // Snow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var person = { | |
name: { | |
first: 'John' | |
} | |
}; | |
person.name.first // John | |
person.name.second // undefiend | |
person.education.school // TypeError. Can't get 'school' of undefined |
OlderNewer