Junior W.

asked • 10/31/16

Does anyone know how to put words into javascript?

The statement is: If the sum of a numbers digit is a multiple of 3, then that number can be divided by 3.
 

1 Expert Answer

By:

James G. answered • 07/27/17

Tutor
4.9 (1,012)

Skilled at programming and problem solving

James G.

This is an implementation of the approach suggested by the problem. The problem can be more more simply solved.
function isDivisableBy3(n)
{
  return n > 0 && n % 3 == 0;
}
Report

07/28/17

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.