Tuesday, October 7, 2014

Twelfth Week (August 18-22) Welcome JavaScript!


Konnichiwa Mina-san!!! (Hello Everyone) :)

It's the start of our JavaScript lectures. Yeah! So excited yet nervous >_< , because they say that javaScript was hard.

Well guys,  JavaScript is the most popular programming language in the world.
It is the language for HTML, for the Web, for computers, servers, laptops, tablets, smart phones, and more.

for more info check the link >>http://www.w3schools.com/js/js_intro.asp



We tackled also to where we should put JavaScript in a HTML document. JavaScript should be embedded inside the <head></head> tags or in the <body></body> tags. The best place to store function definitions and objects is inside the <head></head> tags. If you want text displayed at a specific spot in the document, you may want to place the JavaScript code within the <body>.

JavaScript ends with a <script> tag and ends on its corresponding tag.

*Here are some outputs we did.* :)












Our first one.















 Second.













 and Our last output.


There are three different data types. One is the numeric which is the numbers or computations. Two is the string which is used for text display. You should put a quotation marks into it to be recognized as a string. And lastly is the Boolean which is the logical data or comparisons like true, false, yes, no.

The process of combining strings together is called Concatenation. The string concatenation operator is a plus sign (+).

Here is an example for you to understand this kind of process.

<script language="JavaScript">
   document.write("I'm "+"cute.")
</script>

* Here is a picture of our activity in Concatenation. *




Well at first this activity was confusing. Well I got no points here. But i know what to do here. Yeah so happy! :3

_____________________________________________________

Sayanora! ;)
'till next time. :*

No comments:

Post a Comment