ByteDance Interview Question

What will happen when user click a button?