Saturday, November 1, 2014

An Introduction to JavaScript III

22nd Week (October 27-31)


This week we started another topic and it's all about JavaScript III. It's getting harder and harder.

Well this week, all we do is encode and encode so that we can already finish all of our activities. And also, Sir Peralta is discussing while we are encoding.

These are the new topics that we have on JavaScript III:

About JavaScript Operators and Expression
Data objects can be manipulated in a number of ways by the large number of operators provided by JavaScript. An operator manipulates data objects called operands. Operators and operands are found in expressions. And when you terminate an expression with a semicolon, you have a complete statement.

Assignment- used to assign values to JavaScript Variables. The equal sign is the assignment operator.


Precedence and Associativity- Precedence  refers to the way in which the operator binds to its operand. The Precedence of one operator over another determines what operation is done first. Associativity refers to the order in which an operator evaluates its                                                                       operands.





Types of Operators

*Arithmetic Operators- used to perform arithmetic between variables and/or values.
*Shortcut Assignment Operators- allow you to perform an arithmetic or string operation by combining an assignment operator with an arithmetic or string operator.
*Autoincrement and Autodecrement Operators- to make programs easier to read, to simplify typing, and at the machine level, to produce more efficient code, the autoincrement (++) and autodecremet (--) operators are provided.
*Concatenation Operator- the + sign, is a string operators used to join together one or more strings. In fact, the concatenation operators is the only operator JavaScript provides to manipulate strings.
*Comparison Operators- when operands are compared, relational and equality operators are used. The operands can be number or strings. The result of the comparison is either true or false - a Boolean Value


On the other day, Sir Peralta gave us a hands-on quiz about the JavaScript II. As usual, another zero for me. It's really breaks my heart. Hahaha! :)


Note: if you have any questions, feel free to comment in the lower box.

Adios!

No comments:

Post a Comment