01. 作用域和值类型引用类型的传递
1.01-作用域和值类型引用类型的传递
var num1 = 55; var num2 = 66;//100 function f1(num, num1) { // var num =55; // var num1 = 66; num = 100;//100 num1 = 100;//100 num2 = 100;//100 console.log(num);//100 console.log(num1);//100 console.log(num2);//100 } // 55 66 f1(num1, num2); console.log(num1);//55 console.log(num2);//100 console.log(num);// 报错