반응형
var string = 'JavaScript';
var output ='';
output += 'anchor: ' + string.anchor() +'\n';
output += 'big: '+ string.big()+'\n';
output += 'blink: '+string.blink() +'\n';
output += 'bold: '+ string.bold()+'\n';
output += 'fixed: '+ string.fixed()+'\n';
output += 'fontcolor(\'red\'): '+string.fontcolor('red') +'\n';
output += 'fontsize(15): '+ string.fontsize(15)+'\n';
output += 'italics: '+ string.italics()+'\n';
output += 'link: '+string.link('http://www.naver.com') +'\n';
output += 'small: '+ string.small()+'\n';
output += 'strike: '+ string.strike()+'\n';
output += 'sub: '+ string.sub()+'\n';
output += 'sup: '+ string.sup()+'\n';
console.log(output);
anchor: <a name="undefined">JavaScript</a>
big: <big>JavaScript</big>
blink: <blink>JavaScript</blink>
bold: <b>JavaScript</b>
fixed: <tt>JavaScript</tt>
fontcolor('red'): <font color="red">JavaScript</font>
fontsize(15): <font size="15">JavaScript</font>
italics: <i>JavaScript</i>
link: <a href="http://www.naver.com">JavaScript</a>
small: <small>JavaScript</small>
strike: <strike>JavaScript</strike>
sub: <sub>JavaScript</sub>
sup: <sup>JavaScript</sup>
반응형
'언어 > javascript' 카테고리의 다른 글
javascript : array 객체의 remove사용법 (0) | 2020.12.15 |
---|---|
javascript : array sort 방법 (0) | 2020.12.15 |
javascript : String (0) | 2020.12.15 |
javascript : Nmuber 객체 (0) | 2020.12.15 |
javascript : Object 객체 내장함수 (0) | 2020.12.15 |