This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.5
PTR
10.2.6
Drop by and say hi! (Recycle Bin)
Post Reply
Return to board index
Post by
Adamsm
Lol, the Monk forum has disappeared.
Edit: And now it's back.
Post by
Lombax
Just came home from a night at the hospital.
Post by
530888
This post was from a user who has deleted their account.
Post by
Lombax
Was probably my appendix(?), but I feel a lot better now.
Post by
530888
This post was from a user who has deleted their account.
Post by
240140
This post was from a user who has deleted their account.
Post by
Thror
Blood DK's can be pretty stubborn.
Post by
OverZealous
DK's can be pretty stubborn.
I know
:(
Post by
240140
This post was from a user who has deleted their account.
Post by
Thror
I find it amazing how deep under my skin did Bastion get. Is it because of the Narrator? The characters, the music, the story, all have a special place in my mind. I have a bunch of Bastion songs in my playlist and the moment they pop in I get chills. Zulf's theme even brings almostears into my eyes.
Post by
Pwntiff
I hear good games will do that to you.
Post by
Interest
Ok, Interest. Another one. Im trying to get it to count from 1 to 20, and say Fizz on everything divisible by 3, and Buzz on everything divisible by 5, unless the number is divisible by both, and then I want it to say FizzBuzz. This time it just gives me an error:
var i;
for (i=1; i<=20; i++) {
if ( i % 3 === 0; i % 5 === 0) { \\The problem is on this line. I'm not sure how to format it.
console.log("FizzBuzz")
}
else{
if ( i % 3 === 0 ) {
console.log("Fizz")
}
else{
if ( i % 5 === 0 ) {
console.log("Buzz")
}
else {
console.log(i)
}
}
}
}
Ok, I figured it out. This may have been an issue with my math skills, and not my programming skills. I was trying to do two qualifiers for my if, which was, divisible by 3, and divisible by 5. Instead, I just said divisible by 15. That worked, but I would still like to know how to do two qualifiers, if I should need to in the future.
Uh yeah I probably should've said something, but I actually went to sleep after that last post. >_<
Blood DK's can be pretty stubborn.
Troofax.
Post by
Pwntiff
You need to use the logical AND (&&) to compare multiple conditions, that or nested if statements, but that's just bad coding.
Option A
if ( i % 3 === 0 && i % 5 === 0 ) {
Divisible by 3 and 5
}
Option B
if ( i % 3 === 0 ) {
Disivible by 3
if ( i % 5 === 0 ) {
Divisible by 3 and 5
}
}
Post by
Patty
Blood DKs can be pretty stubborn.
Fixed. :P
Post by
Thror
Ohu. ._.
Post by
Azazel
Watched Bowling Columbine today. Pretty good movie. For once, an American movie that actually criticises America. I really enjoyed it.
Post by
Pwntiff
MERICA AM GREETEST!
Post by
OverZealous
I feel the whole Morality thread is a big circle...
Post by
Pwntiff
I feel the whole Morality thread is a big circle...
Yep, I stepped back in because there were other people joining the discussion, but discussing Shades of Grey with Sold is like discussing the age of Earth with a YEC.
Post by
Thror
I feel the whole Morality thread is a big circle...
Hahah. Oviously. Same as 90% of "debate" topics that get past page 2.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.