Skip to content

Commit f979bb6

Browse files
committed
function.length
1 parent 640704f commit f979bb6

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Functions & Methods/funmcq.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
function xyz(a, b, c) {
3+
4+
}
5+
console.log(xyz.length)//3
6+
function abc(x = 0, y, z) {
7+
8+
}
9+
console.log(abc.length)//0
10+
function pqr(d, e = 0, f) {
11+
12+
}
13+
console.log(pqr.length)//1
14+
function sef(y, z, b = 0) {
15+
16+
}
17+
18+
console.log(sef.length)//2
19+
function def(y = 0, x = 0, z = 0) {
20+
21+
}
22+
console.log(def.length)//0
23+
24+
25+
26+

0 commit comments

Comments
 (0)