- 1). Test your JavaScript at jsFiddle (see Resources). The lower-left hand box on this site lets you paste your JavaScript to test it. Click "Run" at the top bar and you will see the result of the code appear to the right of the JavaScript. You can "fiddle" around with it (hence the site name) in the left pane and keep updating it by hitting "Run" until it works.
- 2). Test your JavaScript at JSLint (see Resources). This site allows you to paste the code in the box and then view it below after clicking "JSLint." While you lose the ability to see the code and product side-by-side, you gain a result that is as wide as a normal computer screen. For code that takes up the width of the screen, this might display it more accurately than the narrow jsFiddle window would.
- 3). Test your JavaScript at WriteCodeOnline (see Resources). For users writing simple text JavaScript, this site offers the quickest, most functional setup. It works in a similar manner to the other two, but the basic interface lets you modify and run the code as quickly as maximum speed.
previous post
next post