Which two methods are used to address this?

In the browser, the window object is often used to assign variables that require the broadest scope in an application Node.js application does not have access to the window object by default.

Which two methods are used to address this? Choose 2 answers
A . Use the document object instead of the window object.
B . Assign variables to the global object.
C . Create a new window object in the root file.
D . Assign variables to module.exports and require them as needed.

Answer: B

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
Igor Malički
Igor Malički
3 years ago

Answers: B, D