Hi I would like to compare Python and Javascript codes on Sand Snakes. I have python one do you have javascript code for this level?
can I have a link to the level @yigit
what does it mean exactly? @milton.jinich
Python and Javascript are pretty similar. It is just Javascript has a lot more brackets.
For example:
while True:
hero.moveRight()
Javascript:
I havenāt learned Javascript yet so . . . could anyone ātranslateā for me?
I assume it is
while(true) {
hero.moveRight();
}
milton.jinich, yigit just wants to compare Python and Javascript code.
yigit, if youāve already passed the level, congrats! But we cannot give solutions even if you have passed the level. So I am doing an example code to help you compare. Hope that helps.
Lydia
Edit: Made this a wiki so anyone can ātranslateā python into javascript.
Edit by @ineedhelpwithcoding: you added 4 more spaces then needed
Wait @Lydia_Song how do you know what is wrong if he hasnāt shown his code
I donāt know what is wrong, but I assume yigit has passed the level and they would just like to compare the code.
As I said
Lydia
Yep i have passed just slowly slowly i would like to change my language to understand syntax differences
Did my example help you?
Lydia
Yeah. no rush it was good for beginning