// In addition to TopHacker's answer
console.assert(/** Condition **/, /** Error message **/);
console.trace();
debugger; // will force execution halt at the line where this is written allowing code inspection
//return something in the console
console.log(string);
//return something in the console marked as an error
console.error(string);
//return something in the console marked as a warning
console.warn(string);
//return something in the console in a table
console.table([{json strings}];
//clear the console
console.clear();
// console.log("") is usefull for a lot of things
const myNumberOne = 69;
const myNumberTwo = 420;
console.log(myNumberOne + myNumberTwo);
// Example 2
let x = 4;
let y = 2;
console.log(`The difference between x and y is ${x - y}!`)