+ 2
Javascript not working
so i took one of my programs from khan academy that was javascript and it would not work (the progrgram>(https://code.sololearn.com/W350S514tEgx/#js) like "text("hi",90,0) does not work! please help! original program :(https://www.khanacademy.org/computer-programming/obi-wans-lightsaber/4979828121206784 )
4 ответов
+ 3
Checking the original link, it appears that seems to be used the framework processing.js...
I've never use it, but you need at least to link it to the html document where you want to use it (and few more search about it make me believe that the processing code should be linked as external file with reference into an attribute of a <canvas element>: I don't know if you can use it in a one file project, as required in sololean code playground (except if you host external files somewhere else on internet -- but this could also make problem of cross-domain access authorization ^^)
+ 2
Don't give yourself the best answer mark, all the more after setting it to another one ^^
+ 2
thank you guys it really helped!
@visph
i did not know what that check mark was for
sorry i put it back on yours
- 1
text Is not a function in javascript. Pls check khan academy again properly.