Ne znam ako razumijem sve tu, ali mozda tvoj problem je:
http://www.codecademy.com/forums/4f214f820f90210001000197/forum_questions/4f3ca4ca10a5c40003028e48
http://www.codecademy.com/forums/4f214f820f90210001000197/forum_questions/4f3478271f0c3800030006f6
http://www.codecademy.com/forums/4f214f820f90210001000197/forum_questions/4f2ac3fab055e5000100084a
... Codecademy je novi, i nije bez problema. These people all seem to
have had similar problems --- they did exercises OK, but it didn't
always get listed as 'done ok'. So I wouldn't worry too much when it
behaves strangely. I've just tried section 5 (using Google Chrome
browser). and it all seemed fine. Which Web browser are you using?
Dan
(p.s. I tried replying in Bosnian but ran out of words ;)
<html>
<head>
<title> A very simple Web page </title>
</head>
<body>
<h1>Bingo</h1>
<div id="results"></div>
<script type="text/JavaScript">
function getNum() {
return Math.floor(Math.random()*49+1);
}
var seen={};
var myElement = document.getElementById("results");
for(i = 0; i < 6; i++){
while(true){
var r = getNum();
if (!seen[r] ) {
console.log("New number ",r);
seen[r]=1;
break;
}
}
myElement.innerHTML += " <b> ("+r+") </b>";
}
</script>
</body>
</html>