September 8-12
A great week, everyone! This week was type-type week. We only just type things written in our handouts and before the week ends, Sir Peralta discussed some of the things in our hand outs. Here are the things that we've discussed :)
ALL ABOUT JAVASCRIPT OPERATORS AND EXPRESSION
Operators- are symbols such as +, -, =, < and >, that produce a result based on some rules. It manipulates data objects called operands.
EXAMPLE: 5 + 4. (5 and 4 are the operand, the plus (+) sign is the operator)
Assignment Statement- evaluates the expression on the right-hand side of equal sign and assigns the result to the variable on the left-hand side of equal sign.
EXAMPLE: var = 5 +4; (var is the variable, equal (=) sign is the assignment, 5+4 is the expression)
Precedence - it's like a PEMDAS rule. It refers to the way in which the operator binds to its operand.
Associativity- refers to the order in which an operator evaluates its operand; left to right in no specified order or right to left.
TYPES OF OPERATOR
Arithmetic Operators - take numerical values as their operands and return a single numerical value.
Shortcut Assignment Operators -allow you to perform an arithmetic or string operation by combining an assignment operator with an arithmetic or string operator.
Example: x = x + 1 can be written x+=1
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 autodecrement(--) operators are provided
Concatenation Operator -the + sign is a string operator used to join together one or more strings.
Comparison Operators -when operands are compared, relational, and equality operators are used.
Logical Operators - allow you combine the relational operators into more powerful expressions for testing conditions and are most often used in if statements.
The three logical operators are the logical AND, logical OR, and logical NOT.
•This week, Monday and Tuesday, we had our public speaking in our english class. I can feel the tension inside the room, we can't fully concentrate on what we're doing in the tle class for we know that our mindset is on the public speaking. Sorry for that, sir!
So yeah, that are the things that I've learn this week. Hope that you've also learned something from it. Bye, everyone! :)
*pictures were screen captured by yours truly.
*pictures were screen captured by yours truly.
No comments:
Post a Comment