Subtracts two values.

Type signature

(a: number, b: number) => number

Examples

subtract(3, 5);
// ⇒ -2
Try in REPL

Questions

  • How to subtract two numbers?

TypeScript sourceJavaScript source