运行以下JavaScript 程序段后,变量x的值是___ var x=4; x=6; x+=5; A.5 B.9 C.11 D.15

问题描述:

运行以下JavaScript 程序段后,变量x的值是___ var x=4; x=6; x+=5; A.5 B.9 C.11 D.15

C啊
x = 4 //初始值
x = 6 //另赋值
x += 5 ;//x = x + 5 ; x = 6 + 5 = 11