Node.js console.dirxml() Method Last Updated : 10 May, 2021 Comments Improve Suggest changes Like Article Like Report The console.dirxml() method calls console.log() method by passing the received argument, this element does not produce any XML formatting. Syntax: console.dirxml(object_or_element) Parameters: This function accepts the following parameter: object: This method take a JavaScript object or element. Return Value: This method returns the object or element passed. Below examples illustrate the use of process.memoryUsage() method in Node.js. Example 1: index.js // Importing console module const console = require('console'); var a = 'GeeksforGeeks'; // Calling console.dirxml() function console.dirxml(a) Run the index.js file using the following command: node index.js Output: GeeksforGeeks Example 2: Create an index.js file with the following code. index.js // Importing console module const console = require('console'); // Calling console.dirxml() function console.dirxml("Hi there, Geeks") Run the index.js file using the following command: node index.js Output: Hi there, Geeks Reference: https://nodejs.org/api/console.html#console_console_dirxml_data Comment More infoAdvertise with us Next Article Node.js console.dirxml() Method G gouravhammad Follow Improve Article Tags : Web Technologies Node.js Node.js-console-module Node.js-Methods Similar Reads Node.js console.dir() Method The console.dir() method is used to get the list of object properties of a specified object. These object properties also have child objects, from which you can inspect for further information. Syntax: console.dir( object ) Parameters: This method accepts single parameter which holds the object elem 1 min read Node.js console.info() Method The console.info() method is an inbuilt application programming interface of the console module which is used to print messages to stdout in a newline. It is similar to the console.log() method. Syntax: console.info(data, args); Parameters: This method has two parameters as mentioned above and descr 2 min read Node.js console.debug() Method The console.debug() method is an inbuilt application programming interface of the console module which is used to print messages to stdout in a newline. Similar to the console.log() method. Syntax: console.debug(data, args); Parameters: This method has two parameters as mentioned above and described 2 min read Node.js new Console() Method The console module provides a simple debugging console that is provided by web browsers which export two specific components: A Console class that can be used to write to any Node.js stream. Example: console.log(), console.error(), etc.A global console that can be used without importing console. Exa 4 min read Node.js console.table() Method The console.table() method is an inbuilt application programming interface of the console module which is used to print the table constructed from it's parameters into the console. Syntax: console.table(data, properties); Parameters: This method accept two parameters as mentioned above and described 2 min read Like