VOOZH about

URL: https://www.geeksforgeeks.org/javascript/collect-js-dd-method/

⇱ Collect.js dd() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Collect.js dd() Method

Last Updated : 29 Jul, 2020

The dd() method in collect.js is used to log the output of the function and stop the further execution thus exiting the current process.

Installation:

  • Using NPM:
    npm install collect.js
  • Using CDN of collect.js
    <script src="https://cdnjs.com/libraries/collect.js"></script>

Syntax:

collect.dd()

Parameters: It does not accept any parameters.

Return Value: It does not return anything.

Example 1:

Output:

👁 Image

Example 2: Code after dd() function will not be executed.

Comment
Article Tags: