How do you create a closure in JavaScript?
By declaring a variable inside a function without using the var, let, or const keyword.
var
let
const
By using the this keyword inside a function.
this
By returning a function from another function and preserving its lexical scope.
By declaring a function inside another function and accessing variables from the outer function.