# Tutor profile: Tami O.

## Questions

### Subject: Web Development

What’s the difference between SOAP and REST?

Soap stands for Simple Object Access Protocol its an web data transfer protocol that sends data using XML. REST stands for Representational State Transfer, and it is another web data transfer protocol that sends data using JSON.

### Subject: Javascript Programming

What will the code below output to the console and why? (function(){ var a = b = 3; })(); console.log("a defined? " + (typeof a !== 'undefined')); console.log("b defined? " + (typeof b !== 'undefined'));

There are two possible options. We can break down the expression above into its simplest form: b = 3 var a = b If 'use strict' is off, then the output will be : a defined? true b defined? true 'b' is being set to 3 and then 'b's value is being copied to 'a'. If 'use strict' is on, then the program will return a runtime error saying b is not defined.

### Subject: Algebra

Simplify: (x^4 / x^3)^3

The question above is asking you to simplify the expression, which means that you need to reduce it to it smallest form. We see that there is only one variable in this expression 'x', so we can tell that the simplest form will be 'x' and some kind of multiple or exponent. Following PEMDAS (Parentheses, Exponents, Multiplication, Division, Addition, Subtraction), we know we need to handle the inside of the parentheses first. One of the properties of exponents states that the expression a^x/a^y can be re-written as a^(x-y). If we apply this to the expression above, we can simplify x^4/x^3 to x^(4-3). And we can simplify this further to x^1 or just x. Now we have x^3. We can't simplify this further because there's only one variable left, so this is our answer.

## Contact tutor

needs and Tami will reply soon.