js string change font code example Example: change font js selector.style.fontFamily = "Times New Roman";