how to change text to bold through script unity

C#
//Do this for bold
GameObject.Find(/*PutTxtNameHerein""*/).GetComponent<Text>().fontStyle = FontStyle.Bold;

//and this for normal
GameObject.Find(/*PutTxtNameHerein""*/).GetComponent<Text>().fontStyle = FontStyle.Normal;
Source

Also in C#: