I have a little code of javascript which i want to execute at my local machine. So can any one guide me the way to execute it. What i need to install at my local machine to run a javascript code.

Any effort will be appreciated.

>What i need to install at my local machine to run a javascript code.

No. You need a web-browser.

>So can any one guide me the way to execute it.

Create .htm or .html page (file) and use <script> tag to encase JavaScript code.

<html>
     <head>
          <script type="text/javascript">
               function doit() {
                  alert("Hello, World");
               }
          </script>
     </head>
    <body>
          <input type="button" value="Hit Me" onclick="doit()"/>
    </body>
 </html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.