**********This would go in the "head" of the html******* **********within SCRIPT tags**************************** function AddNum(n){ return (n*1) + 2; } function DivNum(n){ return n/2; } function MultNum(n){ return n*2; } function SubNum(n){ return n-2; } *****************This would go in the "body"********* *****************within FORM tags********************
Type a number

Added to 2:

Divided by 2:

Times 2:

Subtracted by 2: