You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$0// Last element selected $1// Second to last element selected$2// Third to last element selected$3// Fourth to last element selected$4// Fifth to last element selected
varpeople=[["John","Smith"],["Jane","Doe"],["Emily","Jones"]];console.table(people);// Logs to the console:
varpeople=[{name: "John Smith",age: 25},{name: "Jane Doe",age: 66},{name: "Emily Jones",age: 14}];console.table(people);// Logs to the console:
varpeople=[{name: "John Smith",age: 25,weight: 160},{name: "Jane Doe",age: 66,weight: 110},{name: "Emily Jones",age: 14,weight: 105}];console.table(people,["name","weight"]);// If restricting to only one specific column, a string with the property name instead of the array works// Logs to the console:
console.group("URL Details");console.log("Scheme: HTTPS")console.log("Host: example.com");console.groupEnd();// Logs to the console:
// Collapse the group by defaultconsole.groupCollapsed("URL Details");console.log("Scheme: HTTPS")console.log("Host: example.com");console.groupEnd();// Logs to the console:
console.group("URL Details");console.log("Scheme: HTTPS")console.log("Host: example.com");// Nested groupconsole.group("Query String Parameters");console.log("foo: bar")console.log("value: 42");console.groupEnd();console.groupEnd();// Logs to the console:
functionaccelerateCar(speed,distance){// Do something here }monitor(accelerateCar);accelerateCar(160,200);// Displays to the console: function accelerateCar called with arguments: 160, 200
Set a breakpoint at a specified position in the code process