Join Slack
Powered by
Is second variant more secure?
# javascript
t
turansky
06/13/2019, 11:03 AM
Is second variant more secure?
-.kt
❓ 6
e
eirikb
06/14/2019, 7:31 AM
In pure JS at least the first is a block, while the second is an object
i
Ilya Goncharov [JB]
06/14/2019, 8:44 AM
@eirikb
var o1 = {}
in pure js, it is plain object, isn't it?
e
eirikb
06/14/2019, 8:46 AM
Yes because of the assignment, but if you just run (or evaluate)
{}
it is a block
👍 2
Open in Slack
Previous
Next