Give the JavaScript expression for determining how many overtime hours an employee has worked.

What will be an ideal response?

see below

```
if (hours <= 40)
overtime = 0;
else
overtime = hours - 40;

```

Computer Science & Information Technology

You might also like to view...

Which of the following should a technician check FIRST on the laptop if the system’s battery is not being charged?

A. CMOS battery B. DC-in jack C. AC-in jack D. Breaker for the wall jack

Computer Science & Information Technology

Which keyword is used to specify that a class will define the methods of an interface?

a. uses b. implements c. defines d. extends

Computer Science & Information Technology