What's everyone's times? I did 7 minutes
You Can't JavaScript Under Pressure
11–20 of 110 posts
Re: You Can't JavaScript Under Pressure
#12Re: You Can't JavaScript Under Pressure
#13Re: You Can't JavaScript Under Pressure
#14What's everyone's times? I did 7 minutes
Re: You Can't JavaScript Under Pressure
#15Thanks for immediately playing audio without asking me first. I know everybody just loves it when web pages do that.
Because of your comment, HN will have a dozen "I am so disappointed in all of you" posts in the coming week declaring how mean everyone here is, and how it is no longer like it "once was". I hope you are happy.
Re: You Can't JavaScript Under Pressure
#16 n===+n && n===(n|0)
Wish I could see my answers after the fact though!Edit: Read the initial requirements of the puzzle, it says sum all the integers, not all the numbers. People using (typeof i[x] == 'number') just got lucky because the test-cases didn't exercise the full requirements of the puzzle ;)
// i will be an array, containing integers and/or arrays like itself.
// Sum all the integers you find, anywhere in the nest of arrays.Re: You Can't JavaScript Under Pressure
#17I finished this in 4 minutes.
Edit: looks like HN doesn't like asterisks
Re: You Can't JavaScript Under Pressure
#18Fun little puzzles. First 4 went pretty quickly (~8:00) and then the last one took ~7 minutes Googling around for this so I could test if a variable was an integer... n===+n && n===(n|0) Wish I could see my answers after the fact though! Edit: Read the initial requirements of the puzzle, it says sum all the integers , not all the numbers . People using (typeof i[x] == 'number') just got lucky because the test-cases d…
It didn't actually require differentiating between integers and floats, just numbers and other types.