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 :: scroll to a section on click on sticky navbar menu html css js 
Javascript :: display component in popup angular 8 
Javascript :: js spread parameters 
Javascript :: jquery get last element with two class name 
Javascript :: do i need to know javascript to learn three.js 
Javascript :: node.js generate certificate 
Javascript :: Stringy.JS 
Javascript :: javascript function hoisting 
Javascript :: is javascript object oriented 
Javascript :: js string to num 
Javascript :: js fadeout 
Javascript :: angular 14 new features 
Javascript :: how to install react js 
Javascript :: use promise in angular 8 
Javascript :: linked list algorithm javascript 
Javascript :: define component react with default props and props type 
Javascript :: match if 
Javascript :: native stack vs stack 
Javascript :: cypress check if an element is visible 
Javascript :: highest and lowest javascript 
Javascript :: javascript advanced interview questions 
Javascript :: js listen websocket 
Javascript :: concatenate arrays javascript 
Javascript :: alpinejs 
Javascript :: Creating New Block for blockchain 
Javascript :: send an email react native 
Javascript :: fetch composition API in Vue3 
Javascript :: pass array as argument javascript 
Javascript :: how to stop requestanimationframe in javascript 
Javascript :: array max value 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =