Source: index.js

/**
 * getStars is function to get a string containing the amount of stars you want.
 * @function getStars
 * @param {number} numberOfStars - The number of stars you want to display.
 */
exports.getStars = function (numberOfStars) {
  return "🌟".repeat(numberOfStars);
};

/**
 * getUnicorns is function to get a string containing the amount of unicorns you want.
 * @function getUnicorns
 * @param {number} numberOfUnicorns - The number of unicorns you want to display.
 */
exports.getUnicorns = function (numberOfUnicorns) {
  return "🦄".repeat(numberOfUnicorns);
};

/**
 * getGuitars is function to get a string containing the amount of guitars you want.
 * @function getGuitars
 * @param {number} numberOfGuitars - The number of guitars you want to display.
 */
exports.getGuitars = function (numberOfGuitars) {
  return "🎸".repeat(numberOfGuitars);
};

/**
 * fibonacci is function to get Fibonacci number at the nth term.
 * @function fibonacci
 * @param {number} nth - The nth term to find.
 */
const fibonacci = function (nth) {
  if (nth < 2) {
    return nth;
  }
  return fibonacci(nth - 1) + fibonacci(nth - 2);
};

exports.fibonacci = fibonacci;