A swift playground inspired tool for playing around with JS
Demo to play around with (barebones styling and still buggy atm)
Note: currently all lines must start with var
, a variable name or a number and be on a single line. Functions need to have toString()
appended.
Input | Output |
---|---|
var x = 10 |
10 |
y = x * 5 |
50 |
x++ |
11 |
10 + 5 |
15 |
json = JSON.stringify({y: y}) |
{"y":50} |
name = 'joe' |
joe |
greeting = 'hello ' + name |
hello joe |
-
Refresh whilst typing - About/description page
- Styling
-
AppendtoString
to functions? - Stringify objects
- Multiline support
- Execute functions
- Type checking for arrays
- Type checking for math starting with brackets
- ES6 Support?
-
Commented lines stop subsequent lines matching up - Support object properties (as well as methods)
-
Highlight current line