Learn JavaScript OOP in Arabic #18 - Prototype Part 3 Extend Constructors Features

preview_player
Показать описание
Prototype Part 3 Extend Constructors Features

=============================

Support Me on Patreon to Help me Create More Videos

I will be Very Happy if you Support my Channel.

Join Our Facebook Group:

Follow My Facebook Profile:

Like Facebook Page:

Follow Me On Twitter:
Рекомендации по теме
Комментарии
Автор

بعد ازنك يا بشمهندس, محتاجين كورس الرياكت ربنا يزيدك علم

mohamadmlaies
Автор

String.prototype.zFill = function(width) {
return this.padStart(width, '0');
};

ahmedbelal
Автор

We Love You Mr.Osama From Algeria <3

ahmed
Автор

I love you all, please, I go to school by bus 😂

programmingonly
Автор

String.prototype.zFill = function (num) {
let arrOfstr = this.split("");
if (arrOfstr.length >= num) {
return this.toString();
} else {
let n = num - arrOfstr.length;
for (let i = 0; i < n; i++) {
arrOfstr.unshift(0);
}
return arrOfstr.join("");
}
};
قبل مشوف حل ال whlile loop ينهر ابيض على السهوله :)))

SyntaxNewOmarRahal
Автор

'0${theResult}' doseint work for me in VS code (mentionned like a normal string), any help plizz.... thank you sir

bengen
Автор

why do i have to add "toString()" to theResult in the return?

be-kreidly
Автор

String.prototype.zFill = function(width = 4) {
let result = this;

if (result.length >= width) return result;

while (result.length >= 0 && result.length < width ) result = "0" + result;

return result
;
};

console.log("55".zFill());

refatalsakka
Автор

نرجو إزالة اى لقطة او اعلان فيه كشف للعورة او موسيقى
إن وجد

mohamed-cghj