codesnippetjavascript

Usually lines up with the amount of CPU cores available (docs).

navigator.hardwareConcurrency