We discussed about the JavaScript and we did some activity.
1 .alert()
2 .prompt()
3. confirm()
alertoutputs a message.
promptoutputs a message and waits for user input, then returns the value ornullif ESC is pressed.
confirmoutputs a message and awaits until user presses ok or cancel. The returned value istrue/false
Data Types
| TYPE | EXAMPLE |
| Numbers | Any number, such as 17, 21, or 54e7 |
| Strings | "Greetings!" or "Fun" |
| Boolean | Either true or false |
| Null | A special keyword for exactly that – the null value (that is, nothing) |
- Numbers - are values that can be processed and calculated. You don't enclose them in quotation marks. The numbers can be either positive or negative.
- Strings - are a series of letters and numbers enclosed in quotation marks. JavaScript uses the string literally; it doesn't process it. You'll use strings for text you want displayed or values you want passed along.
- Boolean (true/false) - lets you evaluate whether a condition meets or does not meet specified criteria.
- Null - is an empty value. null is not the same as 0 -- 0 is a real, calculable number, whereas null is the absence of any value.
Credits from http://sislands.com/coin70/week1/datatype.htm.
* Pre Tag*
The HTML <pre> tag represents preformatted text. Text within this element is typically displayed in a non proportional font exactly as it is laid out in the file. whitespaces inside this element are displayed as typed.
The HTML <pre> tag represents preformatted text. Text within this element is typically displayed in a non proportional font exactly as it is laid out in the file. whitespaces inside this element are displayed as typed.
Picturestakenfrom : https://www.google.com.ph/searchq=pre+tag&source=lnms&tbm=isch&sa=X&ei=xuL6U6DmEY3t8AXtooIQ&ved=0CAYQ_AUoAQ&biw=1024&bih=624#q=pre+tag+in+html5&tbm=isch





0 comments:
Post a Comment