Intro to JavaScript

 

1. What is JavaScript?
A scripting language developed by Netscape to enable Web authors to design interactive sites.

2. What company started JavaScript?
Netscape.

3. Explain briefly the main difference of Java and JavaScript.
Java is for programming(For programs and browser) but JavaScript is for scripting (For browser only)

4. What are the things can we do to a webpage using JavaScript?
Makes our webpage interactive
5. Where do we write JavaScript codes? On which programs/applications?
We put it in html document
6. How can we see the result of our JavaScript code?

View in the browser

 

7. What is the HTML tag to start a JavaScript code?
<script> </script>
8. What is a variable? How is it different to a value?
Variable is buckets of data, a way of creating a reference to that data and it holds value.
9. What are the data types in JavaScript?
String, Number, Boolean, Object, Array, Null, Undefined
10. How do we write comments in JavaScript?
//TEXT HERE

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s