Monthly Archives: March 2013
String is a type of variable that is capable of storing data, which is series of characters. It can be used in quotes, or even double quotes.
2. Give 3 examples of data considered as String.
Series of characters such as “John Doe”, Inside quotes, or double quotes.
3. What is an Integer Data Type?
4. Give 3 examples of data considered as Integer.
It is decimal, hexadecimal, and octal.
5. What is a Floating-point value?
6. Give 3 examples of data considered as Floating-point numbers.
It could be whole number with a decimal portion, a scientific notation, or even a mix between those two such as: 3.45e2 meaning 3.45 multiplied by ten to the power of 2, ending up with a 345.
7. What are the two values considered as Boolean Data Type?
They are the literals true and false.
8. What are the Composite Data Types?
It is object and array.
It is null and undefined.
Netscape Communications Corporation, and Mozilla Foundation.
It can be set to execute when something happens on the website, like when a page has finished loading or when a user clicks on a button.
You can put it on a HTML, you can place your code in either the head section, or the body section of your HTML page. Programs such as Notepad ++, Adobe Dreamweaver will work.
By opening a browser.
8. What is a variable? How is it different to a value?
Variable is a storage location and an associated symbolic name (an identifier) which contains some known or unknown quantity or information, which is the value. THe difference is that variable is the storage. and value is the quantity of information that the variable contains.
It is String, Number, Boolean, Array, Object, Null, and Undefined.
// Write to a heading:
document.getElementById(“myH1″).innerHTML=”Welcome to my Homepage”;
// Write to a paragraph:
document.getElementById(“myP”).innerHTML=”This is my first paragraph.”;
Web Sources Link: