Do you need help identifying the cause of your employees’ unexpected loss of productivity? Do you ever wonder why your staff members are becoming sick so frequently? Well! Because these days, there…
We will discuss the properties available in console object.
Type in the magic line and get to know the properties in console object.
The most powerful function available in console object.Starting from simple console output t to giving colored output ,its filled with a variety of functionalities
We can also style the output in console. You can use the
%c directive to apply a CSS style to console output:
assert takes ’n’ number of arguments,the first argument being an assertion and the following arguments being the messages to be displayed.
Clears the console with an information message “Console was cleared”
count takes optional argument ‘label’.It logs the number of times ‘count’ had been called with the optional label.
Note the last two outputs.The counter starts from the beginning when the label is changed.
console.groupCollapsed() is similar to console.group,just that it created the list collapsed.
Takes mandatory data as input.Should be an array or an Object.It takes a second argument which takes column names to restrict the column being displayed
I have omitted a few other properties which are non standard.
Please share you feedback through commets and if you like the post,feel free to give claps :) :)
To understand what are different path in world of Software Engineering think of different Cuisine just like French,Japanese,Australian,Ethiopian and Indian cuisine . Every Cuisine have there unique…
We arrived in Iquitos, Peru via Latam Airlines and you know you are there when walking down the stairs directly off the plane at an airport with just 1 bay (i.e. room for 1 plane on the runway at a…
7 short poems that are not about love.. “Antilove” is published by Lizella Prescott.