Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to quickly test some javascript code? [closed]

Tags:

javascript

What would be a good way to test Javascript on a browser? Should there be a localhost in my computer? and how to create one?

like image 713
user705414 Avatar asked Jan 15 '12 13:01

user705414


People also ask

How do I test my browser code?

If you want to work with Chrome Developer Tools, simply run the HTML document in Google Chrome and right-click the HTML element you want to inspect. Click on "Inspect" and you will have the tools to run, analyze, and even debug the code.

Can you test JavaScript without HTML?

JavaScript code can be executed without actually using an HTML document quite easily. Pressing Ctrl + Shift + J in Internet Explorer or Chrome, and Ctrl + Shift + K in Firefox will lead you to the console, in which you can paste your JavaScript code to be executed.


1 Answers

Following is a free list of tools you can use to check, test and verify your JS code:

  1. Google Code Playground
  2. JavaScript Sandbox
  3. jsbin
  4. jsfiddle
  5. pastebin
  6. jsdo.it
  7. firebug
  8. html5snippet.net

Hope this helps.

like image 105
AlphaMale Avatar answered Oct 02 '22 18:10

AlphaMale