Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

online Javascript code evaluation tools [closed]

Do you have a favorite site or homegrown page in your toolbox to help you during development of your Javascript?

Something to help you:

  • validate
  • run
  • debug, inspect
  • unit test

Looking for somewhere to paste my JS into, click a Run button, and have it evaluate the statements. This might be for simple snippets for manipulation of numbers, strings, custom objects, etc.

ANSWER (since no answers before the question was closed actually address the requirements:

  • turb0js - lets you step through the code without having to open the browser's console and hunt for the right JavaScript file. Also allows adding an HTML description to the code snippet, and comments from other users. DOM and Console methods don't work.
  • jsbin with // noprotect at the beginning of the code, to enable debugging in the browser console

Non-answers: Codepen (can't debug due to its autorun on edit creating a new script); JSFiddle (no direct support for the browser console)

like image 701
p.campbell Avatar asked Apr 29 '09 17:04

p.campbell


People also ask

What kind of tool do we use to analyze our JavaScript for potential errors while we are writing code?

JSHint is a community-driven tool that detects errors and potential problems in JavaScript code.

Which tool verifies syntax in JavaScript?

The two main know open source tools used for JavaScript code analysis are JSLint and JSHint, the second being a fork of the first one. Developed by the famous Douglas Crockford, JSLint can be considered as the main inspiration of the JavaScript open source code analysis tools family.


1 Answers

Give a look to JsBin it's a great online tool for collaborative JavaScript debugging...

You can easily incorporate the most popular JavaScript libraries, and you can even use it for Ajax Request Debugging...

Check the introductory videos...

like image 114
Christian C. Salvadó Avatar answered Oct 08 '22 22:10

Christian C. Salvadó