Dolapo17's Posts
Nairaland Forum › Dolapo17's Profile › Dolapo17's Posts
1 (of 1 pages)
Can anyone help with how query strings work in nodejs |
@YorubaEmir please add me 07088657758 |
Has anyone gotten bootcamp invite for cycle 45 |
Please has anyone been able to get past challenge 1 on the Homestudy assessment? |
okay |
cycle 36 dolapo17: |
hi everyone im having issues submiting my interview solutions via the form sent. is anyone having this problem too |
eph12:no I didn't. Please can I contact you. I'm learning a new material I have a question I would like to ask. Would appreciate. |
eph12:(technical) didn't have anything to show I had improved from the last bootcamp. |
Andela well done o, didnt make the bootcamp, think I know my mistakes will improve on them before the next application. |
10:30, have you received bootcaml mail. |
guente02:Did mine on friday too |
Did the interview last week |
Oh sorry 34 |
Hi, does anyone know if they've started sending boot camp invitation for cycle 33. |
@eph12 meaning this line of code i had was unnecessary this.items = {'itemName': this.itemName, 'quantity': this.quantity} |
@eph12 @slimsolz added it to the code. its fine now. But guys can you please explain that part. thanks |
eph12:class ShoppingCart{ constructor(){ this.total = 0; this.items = {}; this.cart = []; this.balance = 0; } addItem(itemName, quantity, price){ this.itemName = itemName; this.quantity = quantity; this.price = price; this.cost = this.quantity * this.price; this.total += this.cost; this.items = {'itemName': this.itemName, 'quantity': this.quantity} this.addedQuantity = this.quantity; this.cart.push(this.items); } removeItem(itemName, quantity, price){ this.itemName = itemName; this.quantity = quantity; this.price = price; this.cost = this.quantity * this.price if(this.quantity < 1){ return 'added quantity should be 1'; } for(let i = 0; i < this.cart.length; i++){ if(this.itemName === this.cart[i].itemName){ this.cart.splice(i, 1); this.total -= this.cost; } } } checkout(cashPaid){ this.cashPaid = cashPaid; this.balance = this.cashPaid - this.total; if(this.cashPaid < this.total){ return 'Cash paid not enough'; }else { return this.balance; } } } class Shop extends ShoppingCart{ constructor(){ super() this.quantity = 100; } removeItem(){ this.quantity -= 1; } } |
eph12:here is the code
|
Hi everyone. dont really get what i am to do here. highlighted the test in the screenshot below. can anyone help.
|
tejiri4:Hi can we share ideas on how to complete the coding challenge. completed all but one. having issues with the class challenge. Warm Regards. |
phemmyhot:Can you help out with the class technical test. tried everything i can on it. just not getting it. |
dolapo17: |
function isIsogram(word){ var newArray = word.split(''); var result = []; var hash = new Object(); for(var i = 0; i < newArray.length; i++){ var element = newArray[i]; if(!hash[element]){ hash[element] = true; result.push(element); } } if(result.length !== newArray.length){ return false; }else { return true; } } can anyone help. the code works fine in my text editor but doesnt work in qualified.io gives this error message: TypeError: Cannot read property 'split' of undefined |
1 (of 1 pages)