InterviewHubPRO
Section Overview
Q52

Question 52 of 521

Part 1: Core Objects, Prototypes, Functions & Scope (1 - 53)

10%
JavaScript Internals (521 Qs)•Part 1: Core Objects, Prototypes, Functions & Scope (1 - 53)

How do you check web workers browser support

You need to check browser support for web workers before using it

javascript
if (typeof Worker !== "undefined") {
  // code for Web worker support.
} else {
  // Sorry! No Web Worker support..
}