How do I make text bigger in a javascript html game?

In my high school game design class we are making javascript games as HTML files and we are making brick break right now, and I am trying to make my text on the screen bigger and I cant figure out how to do it.

this is what I have now for writing text on the screen

canvasContext.fillText("SAMPLE TEXT GOES HERE ", 350, 100);

and the text is really small. I’d like for it to be bigger. how do i do that?

3 thoughts on “How do I make text bigger in a javascript html game?”

Leave a Comment