Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,209,549 members, 8,006,428 topics. Date: Tuesday, 19 November 2024 at 03:31 AM

Andela: IT Training And Job - Jobs/Vacancies (254) - Nairaland

Nairaland Forum / Nairaland / General / Jobs/Vacancies / Andela: IT Training And Job (644828 Views)

Letter To All Fresh Graduates and Job seekers / Andela: IT Training And Job - Jobs/vacancies / Similarities Between Football And Job (2) (3) (4)

(1) (2) (3) ... (251) (252) (253) (254) (255) (256) (257) ... (263) (Reply) (Go Down)

Re: Andela: IT Training And Job by T0CH(m): 6:12pm On May 08, 2019
.toFixed() just rounds the floating point to the number of decimal points places specified in the parentheses. Since it wasnt specified as to how the answer should appear, i think you can also use Math.floor() to get a whole number answer.



YorubaEmir:


Too voluminous. Na the first time me de hear am.
Re: Andela: IT Training And Job by babihouse(m): 6:15pm On May 08, 2019
I am currently in stage 2 i have also created the displaySelectedUser which work properly but it still show this error:

Create a "displaySelectedUser" function that updates the UI with the selected "user" properties. See the instructions for details.


Anyone with the solution ?

Re: Andela: IT Training And Job by T0CH(m): 6:34pm On May 08, 2019
Looks good tho. I'd suggest you try following the instructions strictly as regards the ordering of the functions. According to the instruction set your "displaySelectedUser" function shouldn't be where it is on your code.

babihouse:
I am currently in stage 2 i have also created the displaySelectedUser which work properly but it still show this error:

Create a "displaySelectedUser" function that updates the UI with the selected "user" properties. See the instructions for details.


Anyone with the solution ?
Re: Andela: IT Training And Job by T0CH(m): 6:42pm On May 08, 2019
Am still getting the Aww snap message. What could be wrong guys?
Below are my codes: for computeBMI and letsCalculateBMI

Re: Andela: IT Training And Job by KemoSabe: 6:57pm On May 08, 2019
T0CH:
Am still getting the Aww snap message. What could be wrong guys?
Below are my codes: for computeBMI and letsCalculateBMI


For your if statement, you can say "if (healthyCountry.includes(country)){ <!-- Your remaining code goes here --!> }
Re: Andela: IT Training And Job by T0CH(m): 7:38pm On May 08, 2019
Thanks bro but it Still ddnt work. This challenge is overwhelming.

KemoSabe:



For your if statement, you can say "if (healthyCountry.includes(country)){ <!-- Your remaining code goes here --!> }
Re: Andela: IT Training And Job by dynamo96(m): 8:28pm On May 08, 2019
trixandra:
Anyone done with challenge 4? I am not getting any response when I click the play button. dynamo96


Have you fixed this?
Re: Andela: IT Training And Job by Brunomash: 9:41pm On May 08, 2019
Please what am I doing wrong. Anyone? I commented out those ones to focus on the destructuring.

Re: Andela: IT Training And Job by YorubaEmir: 10:23pm On May 08, 2019
T0CH:
.toFixed() just rounds the floating point to the number of decimal points places specified in the parentheses. Since it wasnt specified as to how the answer should appear, i think you can also use Math.floor() to get a whole number answer.



I even used Math.round and got my answer in 2 decimal places and it didn’t work only .fixed could do the job. But it’s unfair that we were not told how the final answer should look like .
Re: Andela: IT Training And Job by KemoSabe: 11:02pm On May 08, 2019
T0CH:
Thanks bro but it Still ddnt work. This challenge is overwhelming.


Based on your code
const computeBMI = ({weight, height, country}) => {
const nHeight = height * 0.3048;
let finalBMI = (weight/Math.pow(nHeight ,2));
const healthyCountry = ["Chad","Gambia","Ghana","Israel","Ivory Coast","Mali","Senegal","Sierra Leone","Uganda"]
if (healthyCountry.includes(country)){
finalBMI *= 0.82;
}
return finalBMI.toFixed(1);
}
Re: Andela: IT Training And Job by trixandra(f): 11:35pm On May 08, 2019
dynamo96:



Have you fixed this?

No, I haven't.
Re: Andela: IT Training And Job by babihouse(m): 11:44pm On May 08, 2019
trixandra:


No, I haven't.


mine is working but yet to pass the test
Re: Andela: IT Training And Job by trixandra(f): 11:57pm On May 08, 2019
babihouse:



mine is working but yet to pass the test
Interesting. How?
Re: Andela: IT Training And Job by babihouse(m): 12:02am On May 09, 2019
trixandra:

Interesting. How?


let api = 'https://randomapi.com/api/y1lfp11q?key=LEIX-GF3O-AG7I-6J84';
fetch(api)
.then(response => {
return response.json();
}).then(data => {
let {results} = data;
[user] = results;
users.push(user);
displayUsers(users);
}).catch(err => {
// Do something for an error here
console.log(err)
});


i am yet to make it inline
Re: Andela: IT Training And Job by T0CH(m): 12:03am On May 09, 2019
I appreciate bro. It has gone through. I was experimenting with .toFixed(2)...and also the const/let thingie were my issues.

KemoSabe:


Based on your code
const computeBMI = ({weight, height, country}) => {
const nHeight = height * 0.3048;
let finalBMI = (weight/Math.pow(nHeight ,2));
const healthyCountry = ["Chad","Gambia","Ghana","Israel","Ivory Coast","Mali","Senegal","Sierra Leone","Uganda"]
if (healthyCountry.includes(country)){
finalBMI *= 0.82;
}
return finalBMI.toFixed(1);
}




Re: Andela: IT Training And Job by babihouse(m): 12:08am On May 09, 2019
This code pulls user from the API but my error is this inline stuff.
Anybody with a solution ?
babihouse:



let api = 'https://randomapi.com/api/y1lfp11q?key=LEIX-GF3O-AG7I-6J84';
fetch(api)
.then(response => {
return response.json();
}).then(data => {
let {results} = data;
[user] = results;
users.push(user);
displayUsers(users);
}).catch(err => {
// Do something for an error here
console.log(err)
});


i am yet to make it inline
Re: Andela: IT Training And Job by makavele: 3:38am On May 09, 2019
Completed

Re: Andela: IT Training And Job by GenBeekay: 4:13am On May 09, 2019
makavele:
Completed

please, after completion, what next?
Re: Andela: IT Training And Job by babihouse(m): 6:17am On May 09, 2019
makavele:
Completed

can you give us a clue on that stage 4.
i am have challenge there.
thanks


this is my error message
Make a ".then" with an inline arrow function that de-structures its parameter to get the "results" property. See the instructions
Re: Andela: IT Training And Job by trixandra(f): 6:24am On May 09, 2019
makavele:
Completed

Please can you share how you did the challenge 4?
Re: Andela: IT Training And Job by trixandra(f): 6:38am On May 09, 2019
babihouse:



let api = 'https://randomapi.com/api/y1lfp11q?key=LEIX-GF3O-AG7I-6J84';
fetch(api)
.then(response => {
return response.json();
}).then(data => {
let {results} = data;
[user] = results;
users.push(user);
displayUsers(users);
}).catch(err => {
// Do something for an error here
console.log(err)
});


i am yet to make it inline

Same issue here bro.
Re: Andela: IT Training And Job by babihouse(m): 6:40am On May 09, 2019
trixandra:


Same issue here bro.



i am have this error
Make a ".then" with an inline arrow function that de-structures its parameter to get the "results" property. See the instructions
Re: Andela: IT Training And Job by trixandra(f): 6:49am On May 09, 2019
babihouse:




i am have this error
Make a ".then" with an inline arrow function that de-structures its parameter to get the "results" property. See the instructions

What is your error message?
Re: Andela: IT Training And Job by babihouse(m): 7:17am On May 09, 2019
trixandra:


What is your error message?



Make a ".then" with an inline arrow function that de-structures its parameter to get the "results" property. See the instructions
Re: Andela: IT Training And Job by YorubaEmir: 7:45am On May 09, 2019
babihouse:
This code pulls user from the API but my error is this inline stuff.
Anybody with a solution ?
displayUsers([user])
Re: Andela: IT Training And Job by babihouse(m): 8:01am On May 09, 2019
YorubaEmir:

displayUsers([users])



pls i don't get it.
can i see the block of code before that lines you you stated ?
Re: Andela: IT Training And Job by educators(f): 8:07am On May 09, 2019
Re: Andela: IT Training And Job by YorubaEmir: 8:13am On May 09, 2019
babihouse:




pls i don't get it.
can i see the block of code before that lines you you stated ?

Your code is correct up to that point. Just change your displayUsers(users) to the one I sent
Re: Andela: IT Training And Job by trixandra(f): 8:13am On May 09, 2019
This is my code. But I am getting this error message

Declare an apị variable and set its value as specified in the instructions.

I have checked and the apị value is correct. What could be the issue?

YorubaEmir dynamo96
Re: Andela: IT Training And Job by YorubaEmir: 8:16am On May 09, 2019
trixandra:
This is my code. But I am getting this error message

Declare an apị variable and set its value as specified in the instructions.

I have checked and the apị value is correct. What could be the issue?

YorubaEmir dynamo96

Remove that return statement. Return statement terminates a code and does not allow codes below it to run. Apart from that use displayUsers([user]);
Re: Andela: IT Training And Job by OluCoder: 8:25am On May 09, 2019
This is my code. But I am getting this error message

Declare an apị variable and set its value as specified in the instructions.

I have checked and the apị value is correct. What could be the issue?

YorubaEmir dynamo96

Hard refresh (Ctrl+Shift+R) and try again. Nothing seems wrong with the code.
Re: Andela: IT Training And Job by OluCoder: 8:27am On May 09, 2019
After completing the whole process, the app seems not to be calculating and printing any results ooo...where did I go wrong...help...
I've checked n checked n checked....

1 Like

(1) (2) (3) ... (251) (252) (253) (254) (255) (256) (257) ... (263) (Reply)

How To Apply For Nigeria Immigration Service (NIS) Recruitment 2017 / Federal Road Safety Commission 2018 Recruitment: How To Apply / FIRS To Recruit 1,250 New Staff

Viewing this topic: 1 guest(s)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 42
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.