forked from MateusAugustoFerreira/exercicio-js-turma-tarde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobject.js
34 lines (29 loc) · 850 Bytes
/
object.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// var car = {
// fabricante:"chevrolet",
// modelo:"corsa",
// peso:"1500kg"
// }
// console.log(" fabricante " + car.fabricante)
// let truck = {
// fabricante: "scania",
// modelo: "8440",
// peso: "10300kg",
// ligado:false,
// ligar:function () {
// this.ligado = true
// console.log(" o caminhao " + this.modelo + " está ligando... ");
// console.log("start vrum vrum vrummmmmm");
// },
// acelerar:function () {
// if (this.ligado == true) {
// console.log(" o caminhão " + this.modelo + " está ligando ")
// console.log(" vrum vrum vrum vrum ")
// }
// }
// }
// let cars = [
// {fabricante:"fiat" , modelo: ,}
// {fabricante: "toyota", modelo: ,}
// {fabricante: , modelo: ,}
// {fabricante: , modelo: ,}
// ]