Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Where do I submit my codes

Here are my codes '''<script type="text/javascript"> function getRandom(num,num2){ if ( isNaN(num) === true || isNaN(num2) === true){alert("Please don't enter string.");return false;} else{ if(num>num2){alert("Random number between "+num2+" and "+num+" is "+(Math.floor(Math.random()(parseInt(num)-parseInt(num2)))+parseInt(num2)));} else if(num2>num){alert("Random number between "+num+" and "+num2+" is "+(Math.floor(Math.random()(parseInt(num2)-parseInt(num)))+parseInt(num)));} else{alert("Both numbers are the same.");} } } var num = prompt("What is your 1st number?"); var num2 = prompt("What is your 2nd number?"); if(getRandom(num,num2)===false) { var erorz = false;var countz=2;var num='';var num2=''; while(erorz === false){ num = prompt("This is attempt #"+countz+".\nWhat is your 1st number?"); num2 = prompt("This is attempt #"+countz+".\nWhat is your 2nd number?"); if(isNaN(num) === false && isNaN(num2) === false){erorz=true;} getRandom(num,num2);countz += 1; } } </script> '''

Steven Parker
Steven Parker
243,656 Points

When formatting code for the forum, you wrap it in lines containing three accents/backticks (```), not apostrophes (''').

1 Answer

Steven Parker
Steven Parker
243,656 Points

I'm not sure what you mean by "where do I submit" ...

If you're following along with a lesson using the workspace, the whole point is to give you the experience of building the code and seeing it work for yourself. You don't "submit" that code.

If you're performing a challenge, once you have written or edited the code according to the instructions, you hit the "check work" button to submit it and get an instant evaluation.

And your avatar indicates that you are not a Techdegree student, so it's not likely that you would be creating a project for peer or staff evaluation. If you were, the instructions for submitting it should have been provided along with the project requirements.

ok. I thought I had to submit. tks