<script>
const f = {
event: 'hover'
}
if ('hover' === f.event) {
f.event = 'mouseover'
} else if ('click' === f.event) {
f.event = 'focus'
}
if ('mouseover' === f.event) {
g = 'mouseout'
} else if ('focus' === f.event) {
g = 'blur'
}
console.log(f, g)
</script>