Coder Social home page Coder Social logo

vikas-kukreti / js-playground Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 3.0 1011 KB

An interactive browser only Javascript IDE

Home Page: https://vikas-kukreti.github.io/js-playground/

HTML 21.11% CSS 1.04% JavaScript 77.85%
js js-playground ide code-editor interpreter javascript javascript-tools

js-playground's Introduction

js-playground

  • An interactive javascript browser based editor and runtime
  • Can be used for testing code snippets and doing data structures and algorithms questions.

Screenshot: Some JavaScript Code Snippet

Contribute

I am busy with my other projects, so if you want to contribute then please create a PR for the same.

Thank you ๐Ÿ™

js-playground's People

Contributors

vikas-kukreti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

js-playground's Issues

Uncaught TypeError: Cannot read properties of undefined (reading 'split')

Thank you for this wonderful little project.

I noticed an error when using it:

in.js:84 Uncaught TypeError: Cannot read properties of undefined (reading 'split')
    at executeCode (main.js:84:50)
    at HTMLDocument.<anonymous> (main.js:28:5)
e

Which is this code:

      if(e.lineNumber == undefined)
            e.lineNumber = e.stack.split('>:')[1].split(':')[0];
        codeOutput.innerHTML += '<h4 style="color: #ff5555">Problem at line number: <span style="color: #f0f0f0">' + e.lineNumber + '</span></h4>';
  

I've made some minor modifications (backup of the current text & run the code after eack keystroke), but since they are not modification of the code itself they shouldn't be the cause?

Another question: under what license is this code available?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.