Follow us on Twitter!
Imagination is more valuable than knowledge - Albert Einstein
Wednesday, April 23, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 18
Guests Online: 17
Members Online: 1

Registered Members: 82885
Newest Member: ConiBE
Latest Articles
View Thread

HellBound Hackers | Challenges | Javascript

Page 2 of 2 < 1 2
Author

RE: Theory on #15

thk-geo
Member



Posts: 39
Location:
Joined: 09.03.06
Rank:
Newbie
Warn Level: 25
Posted on 28-06-06 13:40
Dudes.... I didnt void a thing lol use ur heads.


Author

RE: Theory on #15


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 28-06-06 15:01
this was refreshing the first decent js challenge on the site.

i just hope that lvl 14 will have like a second part with something along this lines


Author

RE: Theory on #15


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-06-06 09:55
SlimTim10 wrote:Not really an array, but I think you get the idea. And yes, it does start at 0. But remember, a character can not be used the same as an integer (it can not be added, subtracted, multiplied, divided, etc.).

I wasn't calling the function itself an array, but rather I was referring to the method of storage. When it is split, the values are stored into an array. Not coincidentally, they are indexed from 0 to string.length - 1.

So, my logic would be:

Code
var string1 = "abcdef";
var array1 = new Array(string1.length + 1);

for(x=0; x<=string1.length - 1; x++) {
array1[x] = string1.substring(x,x+1);
}




There, you would have array1[x] and charAt(x) being equal, and array1 being definitely an array. Each, when all the indexes are printed out using my example string, will give you abcdef.

My whole point being, the computer probably uses a similar method and that was my reason for saying it was similar to an array in my previous post.

**You are now exiting the slightly twisted mind of Mellow Yellow.

Edited by on 30-06-06 06:10
Author

RE: Theory on #15

interslice
Member

Your avatar

Posts: 121
Location: my place of course!
Joined: 05.10.05
Rank:
Newbie
Posted on 29-06-06 10:14
i think somethings wrong with this challenge because when i open up the script it says "password.charAt(6)" twice in the list of variables.

is this a mistake or is it supposed to be like that?
Author

RE: Theory on #15


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-06-06 10:16
Yes. You will come to see that the specific character is used twice.
Author

RE: Theory on #15


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-06-06 10:57
SlimTim10 wrote:
Also, I'm curious as to how one "shows off" in a script :p


u know i was just kidding :D and it was abt that part:

Code
// Written by SlimTim10





Author

RE: Theory on #15

interslice
Member

Your avatar

Posts: 121
Location: my place of course!
Joined: 05.10.05
Rank:
Newbie
Posted on 29-06-06 11:04
god's article said that
you also notice that 'riddle' has as much characters as the number of a,b,c,etc.'s
but when i counted it riddle which is "query test mess" has 13 letters while there are 15 abc's. am i missing something?

Edited by interslice on 29-06-06 11:13
Author

RE: Theory on #15


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-06-06 11:05
most of you guys are just complicating things anyway... took 2 minutes using notepad and logic.

course, i could've written a program to do the trick... but why waste 10 mins writing the program when it can be done in 2 mins?


Author

RE: Theory on #15

interslice
Member

Your avatar

Posts: 121
Location: my place of course!
Joined: 05.10.05
Rank:
Newbie
Posted on 29-06-06 11:08
err i probably am complicating it but wat u jst said there doesnt tell me much ...
Author

RE: Theory on #15


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-06-06 11:59
phoenix121 wrote:
most of you guys are just complicating things anyway... took 2 minutes using notepad and logic.

course, i could've written a program to do the trick... but why waste 10 mins writing the program when it can be done in 2 mins?


true, thats how i solved it, but writing an app for this particular challenge will really reinforce people's javascript coding experience..


Author

RE: Theory on #15


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-06-06 14:30
to all replying without reading the whole thread

there is already enough info both here and on the article

don't spoil the challenge by giving more


Author

RE: Theory on #15


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 30-06-06 02:24
Well the thing was, is that i had never gotten to learning substrings. This really helped me out on how htey work, so im happy Smile


Author

RE: Theory on #15

interslice
Member

Your avatar

Posts: 121
Location: my place of course!
Joined: 05.10.05
Rank:
Newbie
Posted on 02-07-06 23:04
hey guys do spaces count as characters? for eg. "query test mess" has 2 spaces so do they count as characters?

nvm i got it. should i edit that top sentence too?

Edited by interslice on 02-07-06 23:15
Author

RE: Theory on #15


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 05-07-06 05:03
sakarin wrote:
to all replying without reading the whole thread

there is already enough info both here and on the article

don't spoil the challenge by giving more
At first glance, I would agree with that statement. But think about it more deeply. Why are the challenges made? Why does HBH exist? It's okay to have some spoilers like the ones in this thread, since they explain how it works instead of giving a curious answer. The point of the JavaScript challenges is to learn more JavaScript, including syntax and commands. This thread helps explain more advanced syntax which is great. Wink


Page 2 of 2 < 1 2