How to save the document.getElementById method

interview questions encountered

<div id="work">2222</div>

var work = document.getElementById;
work("work");
 

cannot use document.getElementById ("work") to get

Mar.11,2021

work.call (document, 'work');

Menu