Created
June 9, 2019 20:40
-
-
Save SergeyLitvin/855a07d7911a749d6d07405f01414f7d to your computer and use it in GitHub Desktop.
JSDoc_comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Используется как справочный комментарий перед функцией – о том, что именно она делает, какие параметры принимает и что возвращает. | |
| /** | |
| * Возвращает x в степени n, только для натуральных n | |
| * | |
| * @param {number} x Число для возведения в степень. | |
| * @param {number} n Показатель степени, натуральное число. | |
| * @return {number} x в степени n. | |
| */ | |
| function pow(x, n) { | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment