📄 convert.js
字号:
// create an integer variable and add another integer
var num = 9;
var nostr = num + 9;
// create a string version of the num integer variable
// then concatenate a second value to it
var adstr= num.toString() + 9;
// create a new Image object
var img = new Image();
// display string values of the variables
var res = "No strings : " + nostr;
res += "\nAdded strings : " + adstr;
res += "\nImage : " + img.toString();
alert(res);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -