Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,159,777 members, 7,841,028 topics. Date: Sunday, 26 May 2024 at 07:26 PM

Solomon27's Posts

Nairaland Forum / Solomon27's Profile / Solomon27's Posts

(1) (2) (3) (4) (5) (6) (7) (of 7 pages)

Jobs/Vacancies / Re: Elite Decagon Software Developer Thread. by Solomon27(m): 6:50pm On Mar 01, 2019
lambotee:
please i need info about decagon


What do you wanna know?
Politics / Re: Osun Governorship Rerun Election 2018: Live Updates, Results Monitoring by Solomon27(m): 1:11pm On Sep 27, 2018
Referendum50:
Apc can send some boys to wear pdp clothes and carry thier id card and try to make pdp look bad

APC is so DESPERATE

7 Likes 1 Share

Jobs/Vacancies / Re: Wema Bank Graduate Trainee Recruitment by Solomon27(m): 10:27am On Sep 21, 2018
emexodoms:
Lets believe they wanted to say 3 working weeks


Lolssssssssssssssssss grin
Programming / Re: Simple, Rich & Fast Approach To Learning Javascript. Whatsapp Group Inclusive by Solomon27(m): 2:52pm On Sep 02, 2018
07030843064
Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 10:33am On Aug 23, 2018
HolyCoder:


I love your program. Particularly I love the background-colour you've used - it's beautiful!

Here are a few things I Think you should look into:

1. You should try to make a custom dialog-box for displaying your quiz-questions and collecting user-inputs. The default dialog displayed by the 'prompt' keyword provides the user with a checkbox, which (when selected) prevents the page from creating additional dialogs. And if that happens, your program becomes completely useless.

2. I noticed (from your code) that you're only checking if the user's gender is 'male'; in which case you welcome the user with: 'You are welcome Mr....', otherwise you say 'You are welcome Ms....'. Now, what happens is this: If I enter 'olodo' as my gender, it says 'You are welcome Ms...'. Also, even if I enter the string 'Male or MALE' as my gender, I'm welcomed as female. It means your program doesn't properly cater to my gender if I enter anything other than 'male' as my gender.

Here's what I think you should do:

- Specifically check to see if the user has entered either string 'male' or 'female' as gender, and then welcome him/her appropriately. If the user's gender is neither 'male' nor 'female', you should display a generic welcome-message.

You could modify your code to do stuff like this:

if (gender.toLowerCase() == "male" )
{
alert(`You are welcome Mr. ${firstName} ${lastName}, here are the riddles`);
}
else if (gender.toLowerCase() == "female" )
{
alert(`You are welcome Ms. ${firstName} ${lastName}, here are the riddles`);
}
else
{
alert(`You are welcome ${firstName} ${lastName}, here are the riddles`);
}

of course, you could also replace the 'if-else-if' construct with a 'switch' construct.

3. Finally, I notice you're using the statement-terminator (';') in a manner that makes it look like you don't really understand its purpose. Yes, the program works, but it sends a negative message.

As an example, consider the following snippets I've extracted from your source:

if (gender == "male" ){
alert(`You are welcome Mr. ${firstName} ${lastName}, here are the riddles`);
}else {
alert(`You are welcome Ms. ${firstName} ${lastName}, here are the riddles`);
}; What exactly is this semicolon doing here?


How about this?

function start(quiz){
let score = 0;
// main game loop
for (const [question, answer] of quiz){
const response = ask(question);
check(response, answer);
}; Again, what is this semicolon doing here?


//end of main game loop

It's obvious those are not typos, because the pattern is repeated all over your source.

Besides those, I think you've done a very good job!

Blessings...


Wow, I'm obliged! Thanks for your analysis. Will see to your suggestions. Thank you!

What do you mean by custom dialog? Like Form?
Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 5:53am On Aug 23, 2018
Judahudoh:
I want to start preparing for cycle 38, I have received mail for it already.

Cool
Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 9:07pm On Aug 22, 2018
guente02:
If na like so person dey get credit alerts life for better na.
For a start that's awesome.

grin
Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 9:06pm On Aug 22, 2018
DonPikko:
nice, but i don't think there is need to req for user's firstname, lastname, gender, since it doesn't serve any purpose, also try to randomize the riddles


There is... It welcomes you with the full name and a appropriate address which comes from the gender...


I will see to the randomization!
Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 6:56pm On Aug 22, 2018
2O17:

add parenthesis after toLowerCase i.e it should be toLowerCase()


Thanks brother. It worked!
Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 6:30pm On Aug 22, 2018
I was trying to make the input case-insensitive, so I tried:

if (response.toLocaleLowerCase === answer.toLocaleLowerCase)

Obviously didn't work!

Any suggestion?
Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 6:27pm On Aug 22, 2018
Funkypunky:



Nice one bro...At a point i entered nothing and it still output correct...So might need to check that..
Awesome

Thanks. All corrected!
Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 6:27pm On Aug 22, 2018
fxdrizzle:
nice. However I tried it on my phone and it kept telling me I got the correct answer even when I typed in gibberish or left it blank. You might want to look into that.


Thanks. All corrected!
Education / Re: Nigerian Students In China by Solomon27(m): 2:08pm On Aug 22, 2018
dste:
its very hard to get full scholarship with stipends for march intake.
havent gotten any yet.
my whatsapp number is on my profile.


Oh really? But it might be possible

I am ready to apply via you, if it is possible sir.
Jobs/Vacancies / Re: Wema Bank Graduate Trainee Recruitment by Solomon27(m): 2:04pm On Aug 22, 2018
idylnoble:
pls I received mine on 20th of August pls am I to click on getqualified link or wait for another mail from them? I don't understand this "Please ensure ALL steps required on the site are strictly adhered to and completed by, Monday,27th August 2018"

pls I need your response to this, thanks


Sign up via the link given to you and complete the 4 stages of registration

Then apply for wema ban GT job in the vacancy.

2 Likes

Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 2:01pm On Aug 22, 2018
Guys check out my lil project. wanna know your reviews:

https://lawaldare.github.io/mylilpro/
Jobs/Vacancies / Re: Wema Bank Graduate Trainee Recruitment by Solomon27(m): 5:52am On Aug 22, 2018
Juliches:
Please am I suppose to sign up on the link and upload documents.. Please help I don't understand the message

Yes.
Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 6:03pm On Aug 21, 2018
[quote author=katako post=70484203][/quote]

Don't you have PC?
Jobs/Vacancies / Re: Wema Bank Graduate Trainee Recruitment by Solomon27(m): 2:10pm On Aug 21, 2018
daceo1:


if its there, will there be a need to wait for another mail as stated in the mail earlier received from wema

My thoughts too!

60 questions | 60 minutes.

Will do it later

2 Likes

Jobs/Vacancies / Re: Wema Bank Graduate Trainee Recruitment by Solomon27(m): 1:49pm On Aug 21, 2018
daceo1:


have u clicked on d link cos when i did i didnt see where i could signup and upload my documents

Oh it is there ooo!

Na stage Three be the TEST
Jobs/Vacancies / Re: Wema Bank Graduate Trainee Recruitment by Solomon27(m): 1:32pm On Aug 21, 2018
daceo1:


wema bank only received the application and have transfered the recruitment to getqualified who in turn will shortlist those eligible to take the assessment. so calm down bro ull hear from getqualified soon

Exactly, my thought
Jobs/Vacancies / Re: Wema Bank Graduate Trainee Recruitment by Solomon27(m): 1:27pm On Aug 21, 2018
charliesyndrom:

I don't think there would be another email....you are to click on in the link sent to you and write the test


Oh, okay bro


but from the mail they sent to us, they said and I quote :

"We have sent your details to our recruitment partner, Get Qualified (https://www.getqualified.work) and you will be contacted directly by them via email, to let you know the next steps"
Jobs/Vacancies / Re: Wema Bank Graduate Trainee Recruitment by Solomon27(m): 1:22pm On Aug 21, 2018
I haven't gotten any other email from them yet
Jobs/Vacancies / Re: Wema Bank Graduate Trainee Recruitment by Solomon27(m): 1:20pm On Aug 21, 2018
idamokoemmanuel:
Done with the test and video chat, scored 31%

How are the questions?


which one is video chat?
Jobs/Vacancies / Re: Wema Bank Graduate Trainee Recruitment by Solomon27(m): 10:30am On Aug 21, 2018
I need materials too:

lawaldare@gmail.com
Jobs/Vacancies / Re: Wema Bank Graduate Trainee Recruitment by Solomon27(m): 7:17pm On Aug 20, 2018
Same here
Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 2:56am On Aug 18, 2018
Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 2:45am On Aug 18, 2018
http://javascript.info seems cool though

1 Like

Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 10:55pm On Aug 17, 2018
Lagosian29:


U can SCALE thru if u were to take its measurement tongue

see my SIGNATURE to SAIL thru d homestudy assessment by subbing to MODERN JAVASCRIPT by BRAD TRAVERSY


How can I get the book?
Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 3:51pm On Aug 17, 2018
Naijavibz:
Test invites for cycle 37 is rolling in now

Yes, I have gotten now

NB: This is just HomeStudy Assessment, it after this that there would be Technical test invite.
Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 7:47am On Aug 15, 2018
guente02:


Zero (0) is a falsy value.

Truncating the strict comparison operator, the zero and parentheses would save few keystrokes las las.

alert( dare%2 ? "it is an even number" : "it is an odd number" );

Would return true if dare is even and otherwise(odd) if otherwise(false)...lol

Yours is more readable nonetheless.

It worked otherwise grin
Jobs/Vacancies / Re: Andela: IT Training And Job by Solomon27(m): 4:44pm On Aug 14, 2018
Funkypunky:



That is the ternary operator...
works thus...
if condition(!s) is true..that is.. if 's' value is not same as 'foo', lets say s= "prince", return "false"
but if condition is true ..that is.. s equals,is 'foo', return "true".

it all boils down to what makes condition true..the condition just require anything but "foo" to be true...

Humble explanation

Another way to use Ternary Operators;

var dare = 45;

alert( (dare%2 === 0) ? "it is an even number" : "it is an odd number" );



That will if a number is even or odd!

(1) (2) (3) (4) (5) (6) (7) (of 7 pages)

(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. 32
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.