() Metode JavaScript bold
Definisi dan Penggunaan
() Metode berani untuk string muncul dalam huruf tebal.
Metode ini mengembalikan string ditambah <b> tag, sebagai berikut:
<B> String </ b>
tatabahasa
string.bold()
Dukungan Browser
Semua browser utama mendukung metode tebal ().
contoh
contoh
Gunakan tali tebal:
<script>
var str = "Hello world!";
document.write(str.bold());
</script>
var str = "Hello world!";
document.write(str.bold());
</script>
Coba »
JavaScript String Object