Thats because you are hard coding 1+2 and 7+9 in your function. You need to use the function parameters inside your function to use the values passed as arguments. So if you called functionWithArgs(4,3) the parameter a would hold 4, and b would hold 3. You can then add those together and get the correct result.