You are on page 1of 2

console.

log('My IPMC');
My IPMC
undefined
function foo() { console.trace('My log statement');}
undefined
..................................
function foo() {
console.trace('My log statement');}
undefined
foo();
VM1942:2 My log statement
foo @ VM1942:2
(anonymous) @ VM1972:1
undefined
function aus() {
console.trace('Augustine');}
undefined
aus();
VM2124:2 Augustine
aus @ VM2124:2
(anonymous) @ VM2156:1
undefined
var e = new Error('foo');
undefined
console.log(e.stack);
VM2375:1 Error: foo
at <anonymous>:1:9

TABLES:
var personArr = [ {
"personId": "143",
"name": "Austin",
"city": "Kasoa",
"phone": "050194004",
},
{
"personId": "200",
"name": "Andrew",
"city": "Accra",
"phone": "0240000003",
},
{
"personId": "300",
"name": "Philip",
"city": "Tema",
"phone": "0569944799",
},
{
"personId": "400",
"name": "James",
"city": "Swedru",
"phone": "0505050550",
},
];
console.table(personArr, ["name", "city", "phone", "personId"]);
console.table(['Hello', 'world']);
To get document:::::console.dirxml(document)

// use javascript to set the colors


document.body.style.color = "white";
document.body.style.backgroundColor = "blue";

You might also like