FAQ - Fundamentals of Information Technology

  1. How do I debug JavaScript code?

    Use Tools > Error Console in Mozilla Firefox. Push Errors and Clear buttons to setup the tool to show only errors and clear all messages logged up to that point. This tool is going to show you all syntax errors that you have in your code.

  2. What program should I use to edit HTML and JavaScript files?

    You could use any text editor such as Notepad. I recommend the free IDE NetBeans which highlights HTML tags and JavaScript keywords and variables and helps you nicely format the code.

  3. What is the DOCTYPE specification that has to be in every HTML page?

    This specifies what version of HTML you are using in your page. For our class we use HTML 4.01 Transitional, which has the following DOCTYPE specification:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">

    Just copy that code at the beginning of every HTML page you write, before the <html> tag.

  4. How do I find out the IP address of my computer?

    Execute ifconfig on GNU/Linux or ipconfig /all on Windows.

  5. How do I find out what my DNS name sever is?

    Execute cat /etc/resolv.conf on GNU/Linux or ipconfig /all on Windows

  6. How do I find out my default gateway?

    Use route utility on GNU/Linux or ipconfig /all on Windows.

  7. How do I find out the domain name for a particular IP address

    Execute nslookup <ip_address>