It would be great to figure out how to press F8, or trigger a pause of JavaScript execution via the keyboard on my computer that has no F8 key.
01 Answer
The information you are looking for is on Apple's support page.
To use any function key, you hold fn, and the touch bar should switch to display the function keys.
It's actually not much different from any other keyboard without a Touch Bar, where holding fn will switch the function between the media keys and the function keys.
The support page also mentions that you can make the function keys display permanently in specific apps in 'System Preferences' > 'Keyboard' > 'Shortcuts'
and that alternatively, you can use the on-screen keyboard.