0
Can we make a website for learning javascript with javascript
2 Answers
+ 1
Javascript is the assembly language of of the web, so it can certainly be done. The main challenge is thinking about what type of exercises to include in the integrated learning environment.
+ 1
Yes you probably can.
By the way Logomonic Learning mentioned a good point here. If your teaching site contains something like that,
1. You can use eval() - not recommended or the Function class
2. You can use a 3rd party service which provides you online compilation support for your code and send you the results back. APIs lile rextester, wandbox are 2 of my choices, but there could be more.
3. Create your own API which works like the above mentioned APIs and do API calls from your site (which is the same as 2nd)
Option 1 could be easiest but you have to check for the code running by the client, otherwise they will end up doing weird stuff to your site lol - not harmful to your side anyway to because it doesn't have a connection with server
Option 3 can take some time to implement with a the security stuff so I recommend going with 2nd