Constructor in Java Script | JS for Beginners - 26 | code io - Tamil

preview_player
Показать описание
In this video from the series of JS for Beginners, we will learn about What is the Constructor in Java Script.

Follow us on
Instagram

LinkedIn
Рекомендации по теме
Комментарии
Автор

function Arav (){
this.num1 = 24 ;
this.num2 = 20;
this.Arav = function(c){
return this.num1 + this.num2 +c;
}
}
let Aravi = new Arav();
console.log(Aravi.Arav(5));

aravindraj
Автор

I'm so confused to choose career now as i am already 3 yoe in a non-tech role. How long can anyone keep up with coding ? As i'm good for nothing, the only way is to learn coding to survive. But its not enjoyable( when it comes to actual production grade code or meaningless competitive coding like leetcode) and i saw very less people are actually pursued programming as passion. In this era where teens can now build a full stack app, it feels like starting l.k.g in coding in mid 20s.

youtubecurious
Автор

function Fun(){
this.a = 5
this.b = 6
this.add = function (c) {
return this.a + this.b + c
}
}

let goms = new Fun();
Console.log(goms.add(4));


Output : 15

karnanspark
Автор

function Operation() {
this.a = 5;
this.b = 3;
this.sum = function (c) {
return this.a + this.b + c;
};
}

let result = new Operation();

swbhndsolution