Created
August 18, 2021 06:14
-
-
Save pradeeprjth/11efbb0abc5522a730d65b8a685fcd4f to your computer and use it in GitHub Desktop.
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
console.clear() | |
// var mCars = { | |
// "p1" : "350 kmph", | |
// "gallardo" : '320 kmph', | |
// "veyron" : '409 kmph', | |
// "agera" : '429 kmph' | |
// } | |
// console.log(mCars) | |
// console.log(typeof(mCars)) | |
var mAgera = { | |
name: "Agera", | |
manufacturer: { | |
name: "Koenigsegg", | |
loaction: "Sweden" | |
}, | |
topSpeed: 429, | |
color: "Black", | |
spoilers: false, | |
applyBrakes: function() { | |
setTimeout(function() { | |
console.log('Car Stopped'); | |
}, 5000) | |
} | |
} | |
console.log(mAgera.name) | |
console.log(mAgera.topSpeed) | |
console.log(mAgera.manufacturer) | |
console.log(mAgera.manufacturer.name) | |
console.log(mAgera.applyBrakes()) | |
console.log(mAgera.applyBrakes) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment