Reputation: 36715
I want to email a small piece of code to my math teacher, in order to demonstrate a point (demonstrate something I wrote in the homework). The code needs to be:
What language can I use?
Upvotes: 2
Views: 232
Reputation: 24976
As Dylan B noted the answer is JavaScript, but I have a stronger reason for suggesting it.
Not everyone knows JavaScript nor cares to learn JavaScript, and while JavaScript is one of the de facto languages for use with an Internet browser (choose most any) there is a good chance that you can write your code in the language of your choice and convert it into JavaScript.
See: List of languages that compile to JS
Upvotes: 1
Reputation: 2099
I personally would suggest HTML / Javascript. You can send anyone a flat HTML file and have them open it in Chrome and it should work the same as your Chrome, as long as it's simple.
(Note: Or Firefox; the only problem with Chrome / Firefox is that browser version compatibility is a pain in the tail)
Upvotes: 6