Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.24 KB

README.md

File metadata and controls

34 lines (29 loc) · 1.24 KB

JS-Playground

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.

Examples:

demo

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

Todo

  • Refresh whilst typing
  • About/description page
  • Styling
  • Append toString 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