Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

console log like a pro

CONSOLE LOG LIKE A PRO:
Put {} to have label value pairs
// e.g console.log({data, name}); returns data: data, name: name

Console.table() puts data in table!

Console.group() ... console.groupEnd() //groups console logs inside these together 

Console.assert only logs if first param falsey!

Console.count keeps track!

console.time and console.timeLog / timeend outputs how long took.

%c first char in string to add custom css:)
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript add onclick to multiple elements 
Javascript :: react check if browser is in dark mode 
Javascript :: javascript practice questions 
Javascript :: push to an array javascript 
Javascript :: check if string contains url 
Javascript :: react create context 
Javascript :: javascript post 
Javascript :: How to acces props of a functional component 
Javascript :: jquery datatable 
Javascript :: monngoose find from an array using in 
Javascript :: spread operator es6 
Javascript :: javascript array last element get 
Javascript :: how to map over arrays vuejs 
Javascript :: null is true or false javascript 
Javascript :: js arrow function vs function 
Javascript :: javascript print square 
Javascript :: passing data in route react 
Javascript :: discord message reply 
Javascript :: javascript objet keys comparaison 
Javascript :: graphql json schema 
Javascript :: how to identify debug and release build in react native 
Javascript :: jquery set timezone 
Javascript :: chart js clear out chart 
Javascript :: javascript replace class tailwindcss 
Javascript :: mouse wheel scroll sections in react 
Javascript :: json parse vs json stringify 
Javascript :: javascript closest child 
Javascript :: dual array in javascript 
Javascript :: sum in javascript 
Python :: install matplotlib conda 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =