Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

整数が17で割り切れるものだけにする関数 #400

Open
wants to merge 1 commit into
base: main-2024
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
'use strict';
"use strict";

module.exports = {
}
/**
* 17 の倍数である場合 true を返す
* @param {number} num
* @returns {boolean}
*/

const isMultipleOfSeventeen = num => {
return num % 17 === 0;
};

module.exports = { isMultipleOfSeventeen };