第一章.变量与字符串
1.打印字符/字符串
document.write( ) 和document.writeln( )
var italic_hippy = hippy_monkey.italics();
[ == var italic_hippy = "" + hippy_monkey + ""; ]
document.writeln(italic_hippy)时,你得到的是斜体显示的字符
2
var shouting_hippy= hippy_monkey.toUpperCase();
hippy_monkey中所有字符以大写显示
var red_bold_tech = bold_tech.fontcolor('red');
[ == var red_bold_tech = "" + bold_tech + ""; ]
所有的字符具有颜色,
你可用string.fontcolor('new color');命令改变其颜色
var broken_bold = bold_tech + "
";
document.writeln(broken_bold);
[ == document.writeln(bold_tech + "
"); ]