How to Convert Text to Java Script

All JavaScript programs start as plain text, but when run through a JavaScript compiler have the capabilities of a powerful programming language. Because JavaScript is an online scripting language, all popular browsers (Firefox, IE, Safari and Opera) have the JavaScript compiler pre-installed. This means that all you need is a text editor and a browser to create runnable JavaScript code. Once you create your first JavaScript program and understand how the writing and testing process works, you'll be on your way to being a JavaScript programming expert.

Things You'll Need

  • Text Editor
  • Browser
Show More

Instructions

    • 1

      In your favorite Text Editor, type (or copy-paste) the following:
      <script type="text/javascript">
      document.write("I'm Testing JavaScript. Can I see this??");
      </script>

    • 2

      Go to "File," "Save as," then type "javascript_test.html" as the file name and click "Save."

    • 3

      Navigate to the folder where you saved your file in Step 2 and double-click the file. This will open the file in your default web browser. On the site that opened, you should see (without the quotes): "I'm Testing Javascript. Can I see this??". You have successfully converted text to JavaScript, and ran your first JavaScript program.

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured