18.
Which of the following methods can be used to create objects in JavaScript?
Literal notation
Constructor function
Object.create()
Object.assign()
Correct: A, B, C, D
Objects in JavaScript can be created using various methods. Literal notation, constructor function, Object.create(), and Object.assign() are all valid ways to create objects. Choose the method that best suits your needs and programming style.