Computer Science, asked by triptibandhu7295, 1 year ago

What can be done in order to avoid creation of global variables in JavaScript?
A.To use a method that defines all the variables
B.To use an object that has the reference to all the variables
C.To use an object as its namespace
D.To use global functions

Answers

Answered by cutieeee10101
0
hey mate........the answer is

C.To use an object as its namespace
Answered by varshini1101
0
heya !!


here is your answer⬇️⬇️


Option B is the answer


hope my answer helps you
Similar questions