is it possible to get the values from browser console and display the result in browser UI?

Let say i created a 3 different function , when user enters
 myFunc(5)
in browser console, the output of it should be displayed in the UI. Is it possible?
Was this page helpful?