Skip to content

Commit 0dd2277

Browse files
committed
function done
1 parent 79ca418 commit 0dd2277

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

02_basics/Functions.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,11 @@ const mycar = {
3838
console.log(mycar.make); // "Honda"
3939
myFunc(mycar);
4040
console.log(mycar.make); // "Toyota"
41+
42+
function mufunc(thearray){
43+
thearray[0]=30;
44+
}
45+
const arr=[45];
46+
console.log(arr[0]); // 45
47+
mufunc(arr);
48+
console.log(arr[0]); //30

0 commit comments

Comments
 (0)