var x = 1138; var y = 3/8; var s = "3 -8"; x = y; var n = 3 - "one"; var t = "one" + "two"; var 3po = true; var level_ = 11; var highNoon = false; var $ = 21.30; var z = 2000; var isBig = y > z; z = z + 1; z--; z y; x = z * t; while (hightNoon) { z--; }找出合理的变量命名
时间: 2023-11-06 19:08:30 浏览: 132
var num = 1138;
var fraction = 3/8;
var str = "3 -8";
var newY = fraction;
var num2 = 3 - "one"; // 变量命名不合法
var str2 = "one" + "two";
var isTrue = true;
var level = 11;
var isFalse = false;
var cost = 21.30;
var year = 2000;
var isBigger = fraction > year;
year = year + 1;
year--;
var result = year * str2;
while (isFalse) {
year--;
}
阅读全文