proyecto-2b-nodejs-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Operaciones matemáticas Plus

Instrucciones de instalación:

npm install proyecto-2b-nodejs-ts

Instrucciones de uso

Importar el módulo

En NodeJS
var op = require('proyecto-2b-nodejs-ts');
En Typescript
import * as matematica from 'proyecto-2b-nodejs-ts';

### Sumas

console.log(op.operacion('+', 1,1));
// 2

Restas

console.log(op.operacion('-', 1,1));
// 0

Multiplicacion

console.log(op.operacion('*', 1,1));
// 1

Division

console.log(op.operacion('/', 1,2));
// 0.5

Es par

console.log(op.esPar(2));
// true

console.log(op.esPar(251));
// false

Readme

Keywords

none

Package Sidebar

Install

npm i proyecto-2b-nodejs-ts

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

9.42 kB

Total Files

6

Last publish

Collaborators

  • mugan86