javascript bold() method


  Translation results:

英[bəʊld] 美[boʊld]

adj. Obvious, eye-catching; brave, fearless; reckless; steep

n. Bold font; bold font

Comparative: bolder Superlative: boldest

javascript bold() methodsyntax

Function: is used to display strings in bold.

Syntax: stringObject.bold()

javascript bold() methodexample

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript">

    var str="Hello world!"
    document.write(str.bold())

</script>

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A