Hey devs on PH!
The easiest way to get started with anything new is with examples - and the Repl.it chrome extension lets you try out *any* code example on the web with just one click.
Prompts are added in GitHub Gists, and the NPM Registry, but you can run any code you find by selecting it and hitting `Try on repl.it` in the menu 👨💻
I'm looking forward to hear what y'all think :)
Really like this tool! But it does not always seem to work. For instance, if I copy these lines of code from stackoverflow:
var mydata = [{ name: "Ram", Id: 1 }, { name: "Shyam", Id: 2 }, { name: "Akhil", Id: 3 }];
searchKey = 2
var selectedData = mydata[mydata.map(function (item) { return item.Id; }).indexOf(searchKey)];
console.log(selectedData)
And use the extension to go to Repl.it, the code is gone. 🧐
@jake_prins Hey!
Right clicking the code, selecting Try on Repl.it - and then entering `nodejs` as the language should work.
I'll be adding aliasing soon, which will make entering just `javascript` work too :)
@jajoosam cool, would be nice to just type 'javascript' or 'js', or maybe a select field that will also remember your last selected language. 😉 I will probably only use it for javascript so not having to type the language could be a nice improvement.
WikiBot
WikiBot
WikiBot
WikiBot
WikiBot