how to make pattern in js
for (var i = 5; i >= 1; i--) {
var str = "";
for (var j = i; j >= 1; j--) str += j;
console.log(str);
}
how to make pattern in js
for (var i = 5; i >= 1; i--) {
var str = "";
for (var j = i; j >= 1; j--) str += j;
console.log(str);
}
design pattern in js
var TeslaModelS = function() {
this.numWheels = 4;
this.manufacturer = 'Tesla';
this.make = 'Model S';
}
TeslaModelS.prototype = {
go: function() {
// Rotate wheels
},
stop: function() {
// Apply brake pads
}
}
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