adding function to objects js
var myObj = {
myFunc: function(param){
//do stuff
}
}
adding function to objects js
var myObj = {
myFunc: function(param){
//do stuff
}
}
js create object with properties
function Car(make, model, year) {
this.make = make;
this.model = model;
this.year = year;
}
object set js
let nombres = [10, 45, 75, 10 ,24,45 ] ;
//let monSet = new Set(nombres) ;
let monSet = new Set() ;
monSet.add('100') ;
monSet.add('280') ;
//monSet.delete('100');
console.log(monSet.size) ;
set methods in js
let chars = new Set(['a', 'a', 'b', 'c', 'c']);Code language: JavaScript (javascript)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us