--

So, I just shared this with a colleague and he suggested adding "contenteditable" attribute to the element and just deleting the text. Speaks volumes how great this question is for interviews.

--

--

Ismayil Khayredinov
Ismayil Khayredinov

Written by Ismayil Khayredinov

Software engineer who combines optimism with pessimism to build robust and idiot-proof solutions

Responses (1)