Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to console in node js

console.log("Hello wordl!");
Comment

node.js console

console.log('hello world');
// Prints: hello world, to stdout
console.log('hello %s', 'world');
// Prints: hello world, to stdout
console.error(new Error('Whoops, something bad happened'));
// Prints error message and stack trace to stderr:
//   Error: Whoops, something bad happened
//     at [eval]:5:15
//     at Script.runInThisContext (node:vm:132:18)
//     at Object.runInThisContext (node:vm:309:38)
//     at node:internal/process/execution:77:19
//     at [eval]-wrapper:6:22
//     at evalScript (node:internal/process/execution:76:60)
//     at node:internal/main/eval_string:23:3

const name = 'Will Robinson';
console.warn(`Danger ${name}! Danger!`);
// Prints: Danger Will Robinson! Danger!, to stderr
Comment

PREVIOUS NEXT
Code Example
Javascript :: fetch api 
Javascript :: binary search javascript 
Javascript :: handle onchange react 
Javascript :: js logical operators 
Javascript :: jquery api 
Javascript :: how to get current formatted date dd/mm/yyyy in javascript 
Javascript :: javascript remoe last character from string 
Javascript :: array as json 
Javascript :: jquery datepicker 
Javascript :: Date toLocaleDateString Javascript 
Javascript :: get selected text input javascript 
Javascript :: how to get os theme value in javascript 
Javascript :: classic asp get json from url 
Javascript :: array of arrays to one array js 
Javascript :: react before css 
Javascript :: react native font awesome 
Javascript :: Multiple Slick Sliders On Same Page with same classes 
Javascript :: jquery replicate div on drag 
Javascript :: javascript change color 
Javascript :: jest add alias 
Javascript :: js stop submit 
Javascript :: react form hook npm 
Javascript :: clearing setinterval 
Javascript :: lodash count duplicates in array 
Javascript :: node isfile or isdirectory 
Javascript :: tailwind css toggle switch react 
Javascript :: javascript on scroll change nav color 
Javascript :: npm install could not resolve peerDependencies 
Javascript :: constructor function 
Javascript :: An invalid form control with ... is not focusable. 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =