₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,143 members, 8,510,359 topics. Date: Friday, 30 October 2026 at 09:44 AM

Toggle theme

Modash's Posts

Nairaland Forum › Modash's Profile › Modash's Posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 (of 18 pages)

Programming › Re: Challenge For Javascript Beginners/intermidiate by modash(m): 2:29pm On Sep 25, 2017
I have an interesting challenge, write a program that gives you factorial of a number
E.g
5! = 5*4*3*2*1 = 120
4! = 4*3*2*1 = 24
3! = 3*2*1 = 6
2! = 2*1 = 2
1! = 1*1 = 1
0! = 1 (note the answer for zero factorial)
Programming › Re: Challenge For Javascript Beginners/intermidiate by modash(m): 10:26am On Sep 25, 2017
Jaddo19:
Next time wrap ur code in a quote tag.....its better than nairaland code tag......it should eliminate d emoji
Thanks
Programming › Re: Challenge For Javascript Beginners/intermidiate by modash(m): 9:07am On Sep 25, 2017
modash:
var stringAnswer = prompt("Enter 0 to Convert From USD to RMB,And 1 to Convert From RMB to USD And Quit To Exit The App"wink
var numberString = Number(stringAnswer)
while(stringAnswer !== "quit"wink{
if(numberString === 0){
var stringAmount = prompt("How Much USD Do you Want to Convert to RMB"wink;
var amount = Number(stringAmount);
rmb(amount);
}
else if(numberString === 1){
var stringAmount1 = prompt("How Much RMB Do You Want To Convert To USD"wink;
var amount1 = Number(stringAmount1);

usd(amount1);
}
stringAnswer = prompt("Enter 0 to Convert From USD to RMB,And 1 to Convert From RMB to USD And Quit To Exit The App"wink
numberString = Number(stringAnswer)

}
alert("You Have Quit The App"wink;

function rmb(money){
var result = money * 6.81
alert(result + " USD"wink;
return result
}

function usd(money){
var result1 = money / 6.81
alert(result1 + " RMB"wink;
return result1
}
i dunno why the wink emoji keeps appearing on nairaland
Programming › Re: Challenge For Javascript Beginners/intermidiate by modash(m): 11:58pm On Sep 24, 2017
bjhaid:
write a program that prints

Foo
Bar
Fooz

Repeatedly ten times
for(var i = 0; i < 10; i++){
console.log("Foo"wink
console.log("Bar"wink
console.log("Fooz"wink
}
Programming › Re: Challenge For Javascript Beginners/intermidiate by modash(m): 9:54pm On Sep 24, 2017
bjhaid:
okay, little diff from mine, will post tomorrow
cool, will see your tomorrow then
any other challenges
Programming › Re: Challenge For Javascript Beginners/intermidiate by modash(m): 9:47pm On Sep 24, 2017
I Optimized It Abit
i just tried it and it works
Programming › Re: Challenge For Javascript Beginners/intermidiate by modash(m): 9:46pm On Sep 24, 2017
bjhaid:
write a program that'Ll prompt user to enter 0 to conver from usd to rmb. And 1 to convert from rmb to usd
Like this
Enter exchange rate from $ to rmb-6.81
Enter 0 to convert usd-rmb and 1 vice versa
Enter dollar amount-$100
$100 is 681.0yuan
Enter the exchange rate from $-rmb-Enter 0 to convert usd-rmb and 1 vice versa
Enter the rmb amount-10000
10000yuan is $1468.43
var stringAnswer = prompt("Enter 0 to Convert From USD to RMB,And 1 to Convert From RMB to USD And Quit To Exit The App"wink
var numberString = Number(stringAnswer)
while(stringAnswer !== "quit"wink{
if(numberString === 0){
var stringAmount = prompt("How Much USD Do you Want to Convert to RMB"wink;
var amount = Number(stringAmount);
rmb(amount);
}
else if(numberString === 1){
var stringAmount1 = prompt("How Much RMB Do You Want To Convert To USD"wink;
var amount1 = Number(stringAmount1);

usd(amount1);
}
stringAnswer = prompt("Enter 0 to Convert From USD to RMB,And 1 to Convert From RMB to USD And Quit To Exit The App"wink
numberString = Number(stringAnswer)

}
alert("You Have Quit The App"wink;

function rmb(money){
var result = money * 6.81
alert(result + " USD"wink;
return result
}

function usd(money){
var result1 = money / 6.81
alert(result1 + " RMB"wink;
return result1
}
Programming › Re: Challenge For Javascript Beginners/intermidiate by modash(m): 9:34pm On Sep 22, 2017
vaspire:
function checkVariableUndefined(){
If (Variable===undefined){
console.log ('Variable Undefined')
}else{
console.log('Variable defined')
}
}
checkVariableUndefined()

...still a beginner, help your girl rate her code mbok...
Your function doesn't have a argument,
checkVariableUndefined(argument)
Programming › Re: Challenge For Javascript Beginners/intermidiate by modash(m): 9:02pm On Sep 22, 2017
Jaddo19:
I can send u a screenshot if u want...it worked on node.js and my browser console
Its going to work but
The return keyword is
Different to the console.log
It both prints outs a message
But the return bring back a value while console.log print out but is actually undefined
Programming › Re: Challenge For Javascript Beginners/intermidiate by modash(m): 7:51pm On Sep 22, 2017
var repeatt = "#"
for(var i = 1; i < 8; i++){ console.log(repeatt); repeatt += "#"}
Programming › Re: Challenge For Javascript Beginners/intermidiate by modash(m): 7:46pm On Sep 22, 2017
Jaddo19:
Since no one has a solution to d challenge should I drop d answer niihuh
all the solutions given to your second problem work
all of them
Programming › Re: Challenge For Javascript Beginners/intermidiate by modash(m): 7:36pm On Sep 22, 2017
modash:
console.log("#"wink
console.log("##"wink
console.log("###"wink
console.log("####"wink
console.log("#####"wink
console.log("######"wink
console.log("#######"wink

// Using Repeat Method
for(var i = 1; i < 8; i++){
console.log("#".repeat(i))
}
please share your method as well
Programming › Re: Challenge For Javascript Beginners/intermidiate by modash(m): 7:32pm On Sep 22, 2017
console.log("#"wink
console.log("##"wink
console.log("###"wink
console.log("####"wink
console.log("#####"wink
console.log("######"wink
console.log("#######"wink

// Using Repeat Method
for(var i = 1; i < 8; i++){
console.log("#".repeat(i))
}
Programming › Re: Challenge For Javascript Beginners/intermidiate by modash(m): 6:41pm On Sep 22, 2017
Jaddo19:
Since no one has a solution to d challenge should I drop d answer niihuh
Gimme 24 more hours am trying to get the solution
Jobs/Vacancies › Re: Department Of Petroleum Resources - 2016 Graduate Trainee &experienced Hire Job by modash(m): 10:54pm On Sep 18, 2017
saddeeq:
HOTTEST UPDATE
In the final stages of shorlisting for the interview
A total number of 5000 candidates comprising both GT and EXP will be invited. Itz very interesting to know that 1 out of every 5 candidates interviewed will be selected for the job.
From what your saying that means there going to recruit 1000 people??
Please how guaranteed is your source??
Jobs/Vacancies › Re: Department Of Petroleum Resources - 2016 Graduate Trainee &experienced Hire Job by modash(m): 7:44pm On Sep 13, 2017
madri4u:
Guys, I got a shoking news frm a friend of mine who has an insider at dpr. D guy said, DPR is under pressure frm various political big wigs and other top high class society people to shortlist deir candidate names, which is almost completed nw. Success invite mail/text wil roll dis month ending for interview which will hold october. The test is not a criteria weda people score high or not.nigeria, dis country sha, God pass dem.
Also heard about this October for interview from a friend but I dunno how genuine it is....let's keep our fingers crossed
Politics › Re: "We Warned Buhari Not To Appoint Aisha Alhassan" - El-Rufai by modash(m): 4:55pm On Sep 08, 2017
Cinkq:
MINISTERS ARE ASSIGNED BY THE PRESIDENT TO SERVE THE COUNTRY AND NOT THE PRESIDENT HIMSELF, so if you will accuse her or regret appointing her from the onset it should be based on the scale of her performance in her ministerial job and not on her personal feud with the president. I still believe in buhari though.
My opinion as well
Education › Re: 2017/2018 PTDF Scholarship Scheme (Overseas And Local) by modash(m): 1:18pm On Aug 31, 2017
nuel1648:
What is the purpose of this discussion?

If he wasn't reported and made it up so he can leave, then he is definitely not coming back.

If he was truly reported and you don't believe it, it doesn't matter as he will definitely not be coming back.

I can't think of another outcome.

The deed has been done.
Sorry for the distractions guy!!
Education › Re: 2017/2018 PTDF Scholarship Scheme (Overseas And Local) by modash(m): 12:49pm On Aug 31, 2017
madridsta007:
True. The point is that it's not even a "leak." It's updated which anyone there at PTDF should normally give. But he brought some sanity and some directions here, sort of, and it's funny that he was reported. Like I said, "Nigerians sha".
Anyway, we are waiting.
thats the part i doubt that he was reported
by whom?? online ( their mail or their tweeter handle)
or in person at the office??
and how did he get to find out that somebody reported him
and why would anybody do that after all the only thing he said was that the list will likely be out this week
he didnt even mention that LSS will be out before OSS and that they would be contacted by email
apart from that he said OSS will be contacted today
i dunno if he is really their staff or not
and maybe he has info about the list coming out this week that is also possible
i just doubt that he was REPORTED
Education › Re: 2017/2018 PTDF Scholarship Scheme (Overseas And Local) by modash(m): 5:42am On Aug 31, 2017
madridsta007:
Well, there are persons here who are close to officials at PTDF. It's a matter of saying to these officials that, "there are leaks", and then this is raised in a morning meeting.

Any staff who was here giving updates would, naturally, get worried and shut down his/her account.
My brother if you really look at it which leak did he give really ?? Apart from saying likely the list will be out this week.
My own opinion sha I don't buy it
The list could be out today like he said but I don't think its privileged info
Education › Re: 2017/2018 PTDF Scholarship Scheme (Overseas And Local) by modash(m): 11:47pm On Aug 30, 2017
madridsta007:
I do not understand why people will complain that a PTDF staff was giving out information that is, let's face it, what PTDF should be doing. This is non-sensitive information!

Nigerians sha. The way some people here reason. Someone is helping you with updates of a test-release date and you find fault in it. Why?

Gosh!

Anyway he's gone. I guess those who chased him off are happy to resume groping in the dark.
I don't believe that story that people were complaining.
Who were they complaining to and how did he get to find out that people were complaining.
Education › Re: 2017/2018 PTDF Scholarship Scheme (Overseas And Local) by modash(m): 11:51am On Aug 24, 2017
peterayoola7:
Morning All,

This is the first time am commenting here about #ReleaseTheList campaign

I have a friend whose blood-sister is in UK now under the auspices of PTDF for PhD. She travelled in January this year and since January she have not been paid a dime! PTDF gave her full sponsorship letter for a fully funded scholarship. However, they are now saying it is a Partial Scholarship... She travelled from London to Abuja this week and she was at PTDF Towers in Abuja to state her claims and you know what?

She said all PTDF Management Board and those in charge of the scholarship are not in the country as we speak. So, there is nothing like LIST BEING RELEASED until dey return.

They even told her 'hopefully' upper week, they will release the list... Can you imagine NOT EVEN NEXT WEEK o... Hopefully Upper week!... We need to make sure we get to the front page of Newspaper headlines. It is disheartening that the Senate is on break now to resume 19th September or so...

We need to do something and act fast about this... PLEASE LET US VERIFY THIS FIRST

Now who can help us verify this info...or who has links to any staff of PTDF to put a call to them to verify the authenticity of this information... Hopefully upper week ke?


Thanks and Good Morning
She was mislead
Its not true that none of them are in the country
Jobs/Vacancies › Re: Department Of Petroleum Resources - 2016 Graduate Trainee &experienced Hire Job by modash(m): 11:46am On Aug 23, 2017
Crystalng:
UPDATE!!!
Do they mark CBThuh

I though the results are computer generated
Education › Re: 2017/2018 PTDF Scholarship Scheme (Overseas And Local) by modash(m): 10:43pm On Aug 22, 2017
adakoleagbenu:
I have like 2 dummy accounts I've been using to tweet at ptdf and retweet other people's tweets.



Like someone said, let's use d hashtag #ReleaseTheList.


let's pressure dem
to all those viewing d thread Bt don't want to comment, help us via twitter.



c u on twitter
No need for the pressure, its coming out soon. I believe before the week runs out
Education › Re: 2017/2018 PTDF Scholarship Scheme (Overseas And Local) by modash(m): 9:57am On Aug 22, 2017
No more predictions? Abi no more sources with info??
Politics › Re: Breaking:buhari 's unconfirmed Speech by modash(m): 9:01pm On Aug 20, 2017
Its a Draft by Rudolf @drdamages its not buharis speech
Education › Re: 2017/2018 PTDF Scholarship Scheme (Overseas And Local) by modash(m): 8:12am On Aug 20, 2017
Is anybody going to predict midnight or Monday before 5pm ??
Phones › Re: 9mobile Is What Is Wrong With The Blackman by modash(m): 8:29am On Aug 18, 2017
No network here in ajah
NYSC › Re: NYSC Allowance For All States In Nigeria 2017 by modash(m): 4:40pm On Aug 15, 2017
How much does lagos state pay a pharmacist ?
NYSC › Re: NYSC 2017 Batch A Corps Members House by modash(m): 4:37pm On Aug 15, 2017
segunk1:
1. Lagos 15-10k
2. Lagos 15-10k
3. Lagos 15-10k excluding medical corp members, theirs is higher.
4. Lagos Again..... Lol.
How much is lagos paying pharmacists? Please
Career › Re: Pharmacists, Pharmacy Students And Interns. At Home Or Abroad, Let's Meet Here. by modash(m): 3:30pm On Aug 15, 2017
Please do state government hospitals in lagos pay pharmacy corners??
Jobs/Vacancies › Re: Department Of Petroleum Resources - 2016 Graduate Trainee &experienced Hire Job by modash(m): 5:50pm On Aug 14, 2017
My Thoughts are it's just that their is no need for another test, why not just take the best candidates from this test. Instead of spending money to organise another test and pick the best, when you can do that from the first test

1 2 3 4 5 6 7 8 9 10 11 12 13 14 (of 18 pages)