somthing wrong ?

Alphabetize

noobatall
9 years ago

0

hi , im tring to use js and , couldn’t find the name of word’s textarea …
am i looking in the wrong place or its just a problem ?

13replies
5voices
272views
bkth
9 years ago

0

if you look the source code of the page, there is no id or anything else set however that is not a problem ;) keep looking

noobatall
9 years ago | edited 9 years ago

0

yeah thx , i did get the words but … i don’t know , i thought i could use sort when i saw the challenge but i can’t run it on the console …
should i use python or its possible with js ?

SIGKILL [r4v463]
9 years ago

0

Hi, it’s possible in JS and you can use sort(), but I think that you simply misuse sort(). Take a closer look at what it does step by step and you will succeed ;)

noobatall
9 years ago

0

okey , well thx for answering , i will try :)

have a nice day

SIGKILL [r4v463]
9 years ago

0

Thanks, you too ;)

bkth
9 years ago

0

try to take a closer look at what sort does and on what it does its magic and what you have :)

noobatall
9 years ago

0

so … still can’t execute my sort … i get this error evrytime Uncaught TypeError: s.sort is not a function()(anonymous function) @ VM844:2InjectedScript._evaluateOn @ VM170:875InjectedScript._evaluateAndWrap @ VM170:808InjectedScript.evaluate @ VM170:664
my var is named ‘ s ’ .
if u can tell me wat im doing wrong …

bkth
9 years ago

0

it seems you are calling sort on a string, again take a closer look at on what sort works ;)

Mugi [Mugiwara27]
9 years ago

0

Before sort(), you need to do something else otherwise you’ll get the error that s.sort is not a function

f0rk [HackingGuy]
9 years ago

0

Check out this definition. [url = http://www.w3schools.com/jsref/jsref_sort.asp]Check out the Definition and Usage section.[/url] :)

noobatall
9 years ago

0

well thx all for the answers , my problem was the split … well took me a while to complete it but anyway thx :“)

bkth
9 years ago

1

:) gz on completing the level

Mugi [Mugiwara27]
9 years ago

1

Congrats noobatall !
Let’s break your head on the next level :)

You must be logged in to reply to this discussion. Login
1 of 14

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss