Say I have an IIFE:
let imagodei = {};
;(async function(){
let C = "12:19";
imagodei.myIife = aFunctionToGetIifeText()
})(imagodei);
I'd like to define aFunctionToGetIifeText()
such that imagodei.myIife
is a string of the above code (not including let imagodei = {};
). Does anyone know if this is possible?
I've seen these questions, but they apply to the case with a named function: