Skip to content

theatulanand/Node-JS-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Calculator

Usage

Syntax

node fileName operation values // values is optional for random

Addition

node index.js add 1 5 // Output --> 6

Substraction

node index.js sub 9 5  // Output --> 4

Multiplication

node index.js mul 1 5 // Output --> 5

Division

node index.js divide 32 4 // Output --> 8

Sin

node index.js sin 60 // Output --> -0.3048106211022167 || sin of an angel given in radians

Cos

node index.js cos 60 // Output --> -0.9524129804151563 || cos of an angel given in radians

Tan

node index.js tan 60 // Output --> 0.320040389379563 || tan of an angel given in radians

Random

node index.js random // Generate a random number between 0 to 10

About

An argument based calculator in nodejs. The code takes arguments from terminal and then depending on arguments gives you the output.

Topics

Resources

Stars

Watchers

Forks

Contributors