BASIC.js for toUpperCase
I'm going to go old school on JavaScript and write a BASIC.js that contains func开发者_如何学Ctions like:
function UCASE(obj) {
return obj.toUpperCase();
}
function LCASE(obj) {
return obj.toLowerCase();
}
Q: Has anyone done this already?
Don't know that anyone has done that exactly -- honestly not sure of the utility, but hey, if it's fun for you, why not?
However, there are a number of javascript-based BASIC interpreters:
NGBasic
Quite BASIC
Applesoft BASIC interpreter
https://web.archive.org/web/20210301193936/https://www.4guysfromrolla.com/webtech/vb2java.shtml
精彩评论