Answers for "object notation javascript"

2

js create object with properties

function Car(make, model, year) {
  this.make = make;
  this.model = model;
  this.year = year;
}
Posted by: Guest on April-01-2020
0

acceder a propiedades objetos

nombreObjeto.nombrePropiedad

Si el método no recibe parámetros colocamos los paréntesis también, pero sin nada dentro.
miObjeto.miMetodo()
Posted by: Guest on May-31-2020

Code answers related to "object notation javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language