Skip to content
RED SAG Skills
hard20 pts · first answer countsjavascriptproxies

Proxy set trap that returns nothing

In strict mode code, what happens on the last line?

"use strict"
const p = new Proxy({}, {
  set(target, key, value) {
    target[key] = value // no return
  },
})
p.total = 10
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions