Trying my own code, but need help!


#1


Can someone help me? I want to make a function in which I can calculate my salary. So I made this function below but i don't know what i did wrong.


SyntaxError: missing ) after argument list


var Salary = function(Hours,Extra){
    return(((Hours*3,42*1,1733)+(Extra*3,42))*0,9944);
}
Salary(20,5;2,75)


#2

this line:

Salary(20,5;2,75)

decimal values use a . and a , is used to separate the arguments which would result in:

Salary(20.5,2.75);

#3

Thank you I didn't know that :smile:


#4