Skip to content

mcky/JS-Playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Swift playground inspired tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published