What can I use instead of console.log?

ignore the text written after the
instead of this:
  1. Console.warn
console.log("hey there");
console.warn("A warning!");
//in the console it will look like a normal warning but instead the string you inserted will be displayed
console.error("An error occurred);
console.info("I want to give you an information😊")
console.debug(“this is a debug”)
 // console.assert(the var/const name, the text)
var a = false
console.assert(a, "this is having a false boolean value");
const employee = [
{name: "Mario", surname:" da vinci", age: 24},
{name: "Lindy", surname:" Mariotte", age: 24}
]console.table(employee);
 console.group("All the children in the family");
console.log("Riya");
console.log("lalisa");
console.groupEnd();
console.group("parent names");
console.log("Julia");
console.log("Robert");
console.groupEnd();
console.count("hello world");
console.count("hello world");
console.count("hello world");
console.count("hello world");
console.count("hello world");
console.count("hello world");
console.countReset();
console.count("hello world);
console.clear(); 

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Diti Arora

Diti Arora

11 year old school going student. I am an front-End developer. Founder: Di-Code