@sanmigueldev/suma-module
Version:
Módulo simple para sumar números
376 lines (104 loc) • 4.8 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<title>Math - Documentation</title>
<script src="scripts/prettify/prettify.js"></script>
<script src="scripts/prettify/lang-css.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
<script src="scripts/nav.js" defer></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger" class="navicon-button x">
<div class="navicon"></div>
</label>
<label for="nav-trigger" class="overlay"></label>
<nav >
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Math.html">Math</a><ul class='methods'><li data-type='method'><a href="module-Math.html#.sum">sum</a></li></ul></li></ul><h3>Tutorials</h3><ul><li><a href="tutorial-getting-started.html">Getting Started</a></li></ul>
</nav>
<div id="main">
<h1 class="page-title">Math</h1>
<section>
<header>
</header>
<article>
<div class="container-overview">
<div class="description usertext"><p>Módulo para operaciones matemáticas básicas</p></div>
<dl class="details">
<dt class="tag-description">Description:</dt>
<dd class="tag-description"><ul class="dummy"><li><p>Módulo para operaciones matemáticas básicas</p></li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="sum.js.html">sum.js</a>, <a href="sum.js.html#line1">line 1</a>
</li></ul></dd>
</dl>
</div>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id=".sum"><span class="type-signature type-signature-static">(static) </span>sum<span class="signature">(…numbers)</span><span class="type-signature"> → {number}</span></h4>
<p class="summary usertext"><p>Suma dos o más números</p>.</p>
<dl class="details">
<dt class="tag-description">Description:</dt>
<dd class="tag-description"><ul class="dummy"><li><p>Suma dos o más números</p></li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="sum.js.html">sum.js</a>, <a href="sum.js.html#line17">line 17</a>
</li></ul></dd>
</dl>
<h5 class="h5-examples">Examples</h5>
<pre class="prettyprint"><code>// Retorna 8
sum(3, 5);</code></pre>
<pre class="prettyprint"><code>// Retorna 15
sum(1, 2, 3, 4, 5);</code></pre>
<h5 class="h5-parameters">Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>numbers</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
<repeatable><br>
</td>
<td class="description last"><p>Números a sumar</p></td>
</tr>
</tbody>
</table>
<h5 class="h5-returns">Returns:</h5>
<div class="param-desc">
<p>La suma de todos los números</p>
</div>
<dl class="param-type">
<dt>
Type
</dt>
<dd>
<span class="param-type">number</span>
</dd>
</dl>
</article>
</section>
</div>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>
<script>prettyPrint();</script>
<script src="scripts/polyfill.js"></script>
<script src="scripts/linenumber.js"></script>
</body>
</html>