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
anotherCar = car; | |
anotherCar.manufacturer = "McLaren"; | |
anotherCar.model = "P1"; | |
console.log( anotherCar ); // Object {manufacturer: "McLaren", model: "P1"} | |
console.log( car ); // Object {manufacturer: "McLaren", model: "P1"} |
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
car = { | |
manufacturer: "Bugatti", | |
model: "Veyron" | |
} |
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
car = new Object(); | |
car.manufacturer = "Bugatti"; | |
car.model = "Veyron"; |
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
SELECT * FROM Users WHERE 1=1 |
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
INSERT INTO users (CustomerName, City, Country) | |
VALUES ('Cardinal', 'Stavanger', 'Norway'); |
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
SELECT * from users; |
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
delete family_members_age.uncle | |
console.log(family_members_age) | |
#=> { mom: 50, dad: 50, sister: 16 } |
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
family_members_age.delete("uncle") | |
#=> 52 | |
family_members_age.each do |key, value| | |
puts key + " : " + value | |
end | |
#=> mom : 50 | |
#=> dad : 56 | |
#=> sister : 16 | |
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
family_member_age.uncle | |
#=> 52 |
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
family_members_age[:uncle] | |
#=> 52 |