₦airaland Forum

Welcome, Guest: Join Nairaland / Login / Trending / Recent / New
Stats: 1,644,106 members, 3,054,416 topics. Date: Tuesday, 30 August 2016 at 11:53 AM

Recent Posts (7)

Nairaland Forum / Recent Posts

(0) (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (of 20 pages)

Religion / Re: Ogboni Clergy:What Is The Relationship Between Christendom And Confraternity by Sayelabola(m): 11:44am
Celica church of Christ?
Just reading that for the first time.
Programming / Re: I Want To Learn Programming. Which Language Should I Start With? by creamyworkz: 11:44am
MrKamar:
Please can someone explain this code to me? It's JavaScript. I have been trying to understand it but I can't figure how the script returns 500 which is maximum number in the argument.

Pls come to my aid. I'm a newbie

<script>
function findMax() {
var i, max = 0;
for (i = 0; i < arguments.length; i++) {
if (arguments[i] > max) {
max = arguments[i];
}
}
return max;
}

document.write( findMax(1, 123, 500, 115, 44, 88)) //returns 500
</script>

Am not much of a javascript person, but from my experience with other programming languages i can tell you this:
"findMax" in that code is a function that was declared with the keyword "function"
in that function, two variables were declared "i" and "max"
with the intention of using "i" as our counter to loop through the arguments. and "max" to hild the maximum value. what the for loop is doing is "it equates "i" to zero for the first iteration and checks if "zero" is less than the number of "arguments parsed into the function "findMax", if it is it goes to the if statement to check if the argument with the index of "zero" is greater than "max" if it is then the value of max is replaced by the value of the agrument with that index, else it goes back to the if statement and adds one to the value of "i" and repeats the loop, recall it checks to be sure "i" is less than the number of items in the argument
Romance / Re: I Slept With My Girlfriend's Friend To Punish Her by westlius: 11:44am
ur gf will knw when d gal carry belle for u
Travel / Re: See Photos Of Flood In Warri As It Rains by Chuvin22(m): 11:44am
thats my friend's house in edeyan street, (Jim's Close precisely) PTI.... this is very unfortunate.
Business / Re: Bankers For Baba-Ijebu (Premier-Lotto). by brucealex44(m): 11:44am
O.SIX
FREE BANKER
(((19BK)))
#OBEY

19BK-42

PERM 19BK-42-10-34-29
Romance / Re: Why Are Some Mods Like This by twoic: 11:44am
WE STILL DEY O. for now I guess. maybe we are the last on the list, awaiting hitler's verdict.

EmperorLee:








Una still dey? grin cheesy I think say he don sentence una to 10years na grin.
Jobs/Vacancies / Re: Agxis Human Resources by kingjibe(m): 11:44am
aypomp:
Weldone Sir ,Please I Really Need Your Answer Please I Need Your Intervention
We have the CV sir.
Politics / Re: What Really Changed For The Avengers To Have Called Buhari "Dear President?" by Progressive01(m): 11:44am
MalcoImX:
All these for just smiling? What would happen then, should the crocodile starts laughing, crying or becomes angry?
Omo, na die be dat oo!! gringrin
Romance / Re: Why Are Some Mods Like This by knightnemesis: 11:44am
EmperorLee:








Una still dey? grin cheesy I think say he don sentence una to 10years na grin.
we ain't scared


he should do what he is best at doing
Politics / Re: RE-IPOB Names New Leader, Lists Soyinka, Gana, Ohakim For Talks With FG by shukuokukobambl: 11:44am
DeleteNonsense:

From today you have sworn to be of good character but I doubt if this your stands can last 24hrs? We know your type but if you prove us wrong, then good.

I don't care about good or bad character. That's your funeral cheesy

What I'm concerned about is the well being of my own in this political and geographic arrangement called Nigeria. Any baga that interferes will get in the line of fire angry
Properties / Re: The Key Questions You Must Not Forget To ask Every Aluminium Dealer! Take A Look by salabscholar01(m): 11:44am
welcome.
Phones / Re: Nigeria's Cyber Space: An Epidemic Waiting To Strike by zeitel: 11:44am
cstr15:
Tribal bashing is the least of your problems. It is a symptom of failure in govt. The same govt you want to regulate social media.
Have you ever seen how tough republicans and democrats go at it online and even offline in the US? What of conservatives and labour party in the UK?
Grow some brain cells.
And your point is?
You can't compare US or UK inter relations with us bro. It's like comparing salt with sugar bro.
I agree with failure in governance but I am beginning to think there is a commensurate, or even greater, failure in the part of citizenry.
Celebrities / Re: Daniella Okeke Poses With Baby Lion (photos) by anochuko01(m): 11:44am
Airforce1:

God's love is enough for me
Airforce1:
I'm done with this interview.

Have a beautiful week.

grin grin
Celebrities / Re: Tiwa Savage's Son, Jamil Walking In New Lovely Photo by Cheriepet: 11:44am
charijee:
Lying liar tongue
Davep, what's up with you?
I no b APC ooo
Oh Lovely! Longest time?
Phones / Re: Iphone To Iphone Transfer, Switch Data From Iphone 6S/6S Plus To Iphone 7 (plus) by movlkser: 11:44am
iPhone Data Transfer helps to switch data from one iPhone to another with a click, so you can directly transfer data from iPhone 6s to iPhone 7 by using this tool.
Business / Re: We Buy Dollars From Government Officials — Bdcs by macphilip: 11:44am
At times I wonder if God is really watching over what is going on in this Country.
How can very few people be this wicked and evil to over millions of Nigerians
Yet God does not do anything to them
Celebrities / Re: Don Jazzy Announces Marriage Plans For Next Year, 2017 [VIDEO] by Deepfreezer(m): 11:44am
This guy now behaves like a child. Are you getting married for us
Romance / Re: 6 Lies Nigerian Guys Tell When They're Hitting On You by francotorti(m): 11:44am
naijaboiy:

Them still dey toast you? shocked
ask her ooo
Sports / Re: Government Policy Stopped Us From Paying Siasia – NFF Head Of Media by Thunderlicious: 11:44am
yeye dey smell
Science/Technology / Re: Python Feeding On Chickens Killed In A Farm!! by joystickextend1(m): 11:44am
good. smiley.
Politics / Re: What Really Changed For The Avengers To Have Called Buhari "Dear President?" by IVORY2009: 11:44am
Progressive01:
Seems you are still pained. cheesy

Well, look for another set of criminals and terrorists to throw your weight behind- scAvengers are no longer bae.

How about murderous herdsmen? That could do just fine. cheesy


Useless shocked
Sports / Re: Government Policy Stopped Us From Paying Siasia – NFF Head Of Media by prinsam30(m): 11:44am
story for the gods


But you can pay a foreign coach a whooping N18m in the space of two weeks Abi


Awón werey
Politics / Re: Etim Ayomobi Dies At 59 by BrainnewsNg(f): 11:44am
puresoul0827:
he had money but could not bribe death.

That's why we always have to Thank God
TV/Movies / Re: MTN Project Fame Season 9 Official Thread by samhay: 11:44am
Thawarplay:
MTN Wan rig yusuph votes..... On their website if you vote it will say maximum 6 votes reached for today when you have not vote yet

Are you the only 1 experiencing this or all TeamYusuf or what, because dis ur accusation get as e be o

Let's say dey wan rig,so u tink dey will stress demself?

Wen Alexander Forbes abi wetin b dia name still dey?.
All dey need is for dat lady to say 'YES IT DOES'
Celebrities / Re: Unbelievable! Before And After Make-up Photos Of An Albino Girl Breaks Internet by Perfecttouch(m): 11:44am
When my wife still be my girlfriend,na me dey help am use cleanser clean her face.now tell me how I no go sabi fraud if I see one?
Politics / Re: Soldiers End "Operation Crocodile Smile" Training, To Storm Creeks by Siddeek: 11:43am
Crocodile smile or tears.
Sports / Re: Government Policy Stopped Us From Paying Siasia – NFF Head Of Media by Funjosh(m): 11:43am
NFF is not serious at all, craze dey worry dem. angry
Phones / Re: I Wonder Why America Does Not Want This Product Outside Its Shores by hUmaneOne: 11:43am
booz:
I bought this tab on amazon. I must confess, I haven't seen its match in Nigeria, both in functionality and battery life. Not until I checked its package and saw this...

American versions have specific basebands and permits only some bands of networks .

Eg a HTC One m8 LTE made for the US (at&t or Verizon)
Will not have 4g LTE if used in Nigeria.

That's why I'm sorry for folks who buy American specs phone and run into problems with 3g or 4g here.
Phones / Re: Gionee Records Massive Success With F103 Pro Pre-order Campaign by tall2ce(m): 11:43am
puyol5:
Am eagerly waiting for it to be officially launched. I like the sleek nature of the phone and the selfie camera
You won't be disappointed in choosing gionee
Jobs/Vacancies / Re: Agxis Human Resources by kingjibe(m): 11:43am
shakol91:
I've sent a CV with my residential address. Pls quote me for feedback... Thanks
Thank you.
Foreign Affairs / Re: African Militaries/ Security Services Strictly Photos Only And Videos Thread by Henry240: 11:43am
giles14:
wot a funny comment.

so because d ND is not 100% water dey should den deploy heavy vehicles. a mrap for dat

just hope d army is not on a mission of ethnic cleansing.

cos dis conflict is for d Navy and maybe d army and air force special forces.

You're just making inflammatory comments that are not based on any facts whatsoever.

An MRAP is an APC, why shouldn't the army deploy when you have miscreants all over the place bombing pipelines. Who has Nigeria's current recession helped?


The Army is well aware of the assets it needs to deploy. You're in no position to make ridiculous claims.
Properties / Re: 10-15% Discount For Fenced Estates On Mainroads In IBEJU-LEKKI ALONG LFTZ by DupsonProperty: 11:43am
The best choice of investment you can't afford to miss..take advanctage

(0) (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (of 20 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: (0) (1) (2) (3) (4) (5) (6) (7) (8) (9)

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