-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsole.js
More file actions
28 lines (21 loc) · 729 Bytes
/
console.js
File metadata and controls
28 lines (21 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// console.log('hello world');
// document.write('hello user');
// prompt('write name');
console.log('hello world'); //string
console.log(31+11); //int
console.warn('this is a warning');
console.error('this is an error');
console.log([1,2,3,4]) //array
console.time('this is an identifier')
console.log('this is a time function in console');
console.timeEnd('this is an identifier');
console.log({name:'anuj', class:12, roll:1.2}); //object
console.table({name:'Anuj', class:12});
var age=122
console.assert(age>120,'you lived long');
console.dir(document)
// Comment
// single line comment
/* Multi
Line
Comment*/