+ 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 )

8th Aug 2017, 6:26 PM
ÐɈ₷ ᵴᴛᴜᴅiᴏᶊ
ÐɈ₷ ᵴᴛᴜᴅiᴏᶊ - avatar
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 ^^)
8th Aug 2017, 4:46 PM
visph
visph - avatar
+ 2
Don't give yourself the best answer mark, all the more after setting it to another one ^^
8th Aug 2017, 5:29 PM
visph
visph - avatar
+ 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
8th Aug 2017, 6:35 PM
ÐɈ₷ ᵴᴛᴜᴅiᴏᶊ
ÐɈ₷ ᵴᴛᴜᴅiᴏᶊ - avatar
- 1
text Is not a function in javascript. Pls check khan academy again properly.
8th Aug 2017, 4:20 PM
CoolCoder
CoolCoder - avatar