Here is my problem:
I' create another HTML page with one textarea and a button. It works like this: you enter the words with the commas in the text area, you click the button and with one function the text of the textarea is ordered alphabetically and selected.
I copy that text and put into the “answer” textarea of the level, and I have yet 1-3 secons of the timer. But when I submit, the result is that I have an incorrect answer…..
To see who return the text my textarea I will put an example.
If I enter this text:
while, neither, should, with, what, she, across, other, among, yet, then, able, also, are, too, these, nor, twas, into, let, from
It returns this:
able, across, also, among, are, into, let, neither, nor, other, she, should, then, these, too, twas, what, while, with, yet
No space at the first word or the end word and between word it put a comma and then one space…. :/ :/
Does anyone know what is happening?
And sorry for my english level,
Aslan1433
The levels with time limits are down for the moment, you have to wait until flabby fixes it :s
https://www.hackthis.co.uk/forum/level-discussion/coding-levels/coding-level-1/12044-answer-has-expired?page=1#latest
A beginner practices until he gets it right, a professional practices until he can’t get it wrong!
A beginner practices until he gets it right, a professional practices until he can’t get it wrong!
Your answer don’t have ‘from’. You can make the code directly in url or console. Search by javascript array functions will help you.
?
Words (characters) and maybe numbers are strings, e.g. “lkdnfo”, “hackthis”, “h4ckth15”. If you have problem with time limit you should use a script in the browser’s console.
?
Strings are sequences of characters. I have no idea why @Roknix brought that up, though. :/
@aslan1433: Your code is broken (as mentioned by @bolofecal) and there is a server problem (as mentioned by @RichardBrook**).
If you used a loop to catch the words, maybe you used the ‘,’ to recognize each word, I used this method too and my script not catch the last word (like in your example), so after concert it my script it worked.
But is better use the array functions, it is more simple. JS have own functions to manipulate arrays.
?
@aslan1433 Great job!:)