Answers for "javascript write console"

20

how to print to console javascript

console.log("string")
Posted by: Guest on February-13-2020
7

javascript print

console.log("Who's Joe?")
Posted by: Guest on August-09-2020
1

what is console in javascript

var str = "Howdy GeeksforGeeks"
var geek = {
  book: "harrypotter",
  price: "2000"
};
var geek2 = [10, 20, 30];
console.log(str);
console.dir(str);
console.dir(geek);
console.log("geek (log) = ", geek);
console.dir(geek2);
console.log("geek2 (log) = ", geek2);

// Prints only string as dir() takes 
// only one parameter. 
console.dir("geek2 (dir) = ", geek2);
Posted by: Guest on December-27-2020
0

console.log

console.log("Hello, world.");
// Hello, world.

let num = 5;
console.log(num);
// 5
Posted by: Guest on August-28-2020
1

javascript console

console.log('log-message'); // Outputs a normal information log to the console window
console.warn('warn-message'); // Outputs warning in the console window
console.error('error-message'); // Outputs error in the console window
console.table('table-message'); // Outputs a table of all the object properties
Posted by: Guest on December-08-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language