While I was browsing a bit around, I did find a nice site called **JS Bin**:
JS Bin is a webapp specifically designed to help JavaScript and CSS
folk test snippets of code, within some context, and debug the code
collaboratively.
So you can register and create an own account with JS Bin. After that, you can upload code, run it and share it with others. One of the nice features is that you can add libraries like jQuery, Ember.js and Handlebars.
So if you are thinking about getting prepared for Stonehearth, this might be a nice way to play around with JavaScript and share some code.
Or else there is the cloud9 IDE. Itās support a nice range of languages, there is even some lua support on the commandline. And since itās an online cloudbased IDE, setup is really easy for beginners.
Iāve used cloud9 IDE before and it is good. However, for stonehearth modding, the only thing itās going to be able to do effectively is HTML, CSS, and Javascript. (In other words, UI stuff)
Even though it has command-line lua support, I donāt think it could run Stonehearth, which it would need to for you to fully test your mod.
Honestly, for HTML, CSS, and Javascript, you can use any text editor and your favorite browser on your local machine just fine. I recommend Sublime Text as a good text editor. It has an unlimited free trial. (Though you should pay the guy if you like it; itās really great)
Iām trying to figure out JS online, but I canāt get this code right, for some reason. I tried to simply call the function three times, like
creditCheck(75);
creditCheck(125);
creditCheck(100);
but that didnāt seem to work. Can anyone tell me what Iām doing wrong?
Yeah, as Warstories pointed out, the string that Codecademy was expecting isnāt the same string you gave them. Although yours may be more grammatically correct, programming is like that. For example, if you say if (āstringā == āStringā) {
ā¦(random code)ā¦
} This wonāt do anything, as the S is capitalised in the second āStringā.
His point was perfectly valid to show that case matters, using case changers is just a very useful technique in a lot of places. Also that function doesnāt exist in js, itās str.toLowerCase