How To Display Bold Text In Javascript Alert, The syntax for bold() method is as follows − Returns the string with <bold> tag.