Differences between Java and JavaScript

Slides:



Advertisements
Similar presentations
5.1 Algebraic Expressions. CAN YOU FOLLOW ORDER OF OPERATIONS?
Advertisements

Order of Operations By Becca Johnston Ms. Kinney 6 th.
Order of Operations ( ) + X . The Order of Operations tells us how to do a math problem with more than one operation, in the correct order.
ORDER OF OPERATIONS How to do a math problem with more than one operation in the correct order.
Integrated Mathematics Order of Operations. Remember the Phrase Order of Operations Parentheses - ( ) or [ ] Parentheses - ( ) or [ ] Exponents or Powers.
Order of Operations Next By: Rebecca Olinger. You all know how to add, subtract, multiply, and divide. Next.
Bell Work 4m 8m 5m 12x 5 6x Write an expression in simplest form that will solve for the perimeter of each of the triangles. 6x x 18x + 5 8m +4m.
Section 1.3 Order of Operations. Evaluate Is your answer 33 or 19? You can get 2 different answers depending on which operation you did first.
9.3 Order of Operations.
1.3 Order of Operations ( ) + X . The Order of Operations tells us how to do a math problem with more than one operation, in the correct order.
I’m Thinking of a Number
A number sentence is a short way of writing a mathematical expression. EXAMPLE I could write: eight plus six equals fourteen or I could write it this way:
Evaluate Is your answer 33 or 19? You can get 2 different answers depending on which operation you did first. We want everyone to get the same.
THE ORDER OF OPERATIONS 1-2. VOCABULARY… 1.Order of Operations – a. Work inside grouping symbols ( ) or [ ] b. Simplify any terms with exponents 3 2 c.
Order of Operations C. N. Colón Algebra I St. Barnabas HS Bronx, NY.
Do Now: Evaluate
Order of Operations.
1-2 The Order of Operations
Simplifying Expressions; Order of Operations
43 Order of Operations  ( ) + - X.
43 Order of Operations  ( ) + - X.
Order of Operations ÷ + - X.
Please Excuse My Dear Aunt Sally
43 Order of Operations  ( ) + - X.
Please Excuse My Dear Aunt Sally
Objective The student will be able to:
Sponge Page a5 Write in Exponent Form: 3) 6 ● 6 ● 6 ● 6 ● 6
43 Order of Operations  ( ) + - X.
43 Order of Operations  ( ) + - X.
43 Order of Operations  ( ) + - X.
Bell Work Begin copying the HW 1.1 on the board  Leaving space to show your work.
Objective The student will be able to:
1.2 Algebraic Expressions and Models, p. 11
Objective The student will be able to:
Objective The student will be able to:
PEMDAS and Simplifying
Divide the number in C by 10.
43 Order of Operations  ( ) + - X.
43 Order of Operations  ( ) + - X.
ORDER OF OPERATIONS How to do a math problem with more than one operation in the correct order.
PEMDAS MATH MADE EASY.
Order of Operations.
Order of Operations STES.
Order of Operations 1-2 Objective: Students will evaluate numerical expressions and algebraic expressions using the order of operations. S. Calahan 2008.
43 Order of Operations  ( ) + - X.
Objective The student will be able to:
Order of Operations PEMDAS.
Objective The student will be able to:
ORDER OF OPERATIONS How to do a math problem with more than one operation in the correct order.
ORDER OF OPERATIONS How to do a math problem with more than one operation in the correct order.
Objective The student will be able to: use the order of operations to evaluate expressions.
Integrated Mathematics
43 Order of Operations  ( ) + - X.
Objective The student will be able to:
43 Order of Operations  ( ) + - X.
43 Order of Operations  ( ) + - X.
Objective The student will be able to:
43 Order of Operations  ( ) + - X.
43 Order of Operations  ( ) + - X.
Do now ÷ 3 8 –
43 Order of Operations  ( ) + - X.
Think about this… What would happen if there were no rules for driving? What would happen if there were no rules for solving math problems?
5.03 Apply operators and Boolean expressions
ORDER OF OPERATIONS How to do a math problem with more than one operation in the correct order.
43 Order of Operations  ( ) + - X.
43 Order of Operations  ( ) + - X.
Order of Operations.
Objective The student will be able to:
Presentation transcript:

Differences between Java and JavaScript Programming languages PART 3: repeating and math

Math in Java Essentially the same Int vs double If there’s no decimal in the problem, there’s no decimal in the answer. Chop off (truncate any decimal part) Order of Operations             Same as math (1+2) * 5 + 1 – 4 / 2 + 8 Please Excuse My Dear Aunt Sally. + add - subtract * multiply / divide % remainder after division

Modularization Javascript uses functions Java uses methods function myFunction ( ) { statements; } Java uses methods public void myFunction ( ) { statements; }

OOP Syntax (Object Oriented Programming) What is OOP? Java Defining objects: their properties and actions The syntax to invoke a method for an object is: objectName.method(parameters) Create an object: Circle c = new Circle(10); Call a method c.setColor(Color.red); You can define your own classes and methods.