repl.it
@isreal/

divisible-by-eval-question

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Write a function that accepts 1 integer as an argument. The
// function should return "true" if the number is divisible by either
// 3 or 5, and return "false" otherwise.

function myNumber(deep){
  //if number passed into function is divisable by 3 or 5
  if (deep % 5 === 0 || deep % 3 === 0){
    return true;
  }else{
    return false;
  }
};
//function being called and number being passed into function
myNumber(15);
Native Browser JavaScript
?