Last Updated : 27 Oct, 2023
Lodash _.add() method is used to add two numbers.
Syntax:_.add(augend, addend);Parameters:
This method returns the result of adding two numbers.
Example 1: In this example, we are adding two numbers by the use of the lodash _.add() method.
JavaScript
// Requiring the lodash library
const _ = require("lodash");
// Use of _.add() method
let gfg = _.add(12, 38);
// Printing the output
console.log(gfg)
Output:
50
Example 2: In this example, we are adding two numbers by the use of the lodash _.add() method.
JavaScript
// Requiring the lodash library
const _ = require("lodash");
// Use of _.add() method
let gfg = _.add(248, 723);
// Printing the output
console.log(gfg)
Output:
971
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4