Adds two values.

Type signature

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

Examples

add(3, 5);
// ⇒ 8
Try in REPL

Questions

  • How to add two values?

TypeScript sourceJavaScript source