Adding Errors with JS

Thanks Zach, I’m running code in an inline(snippet), and I tried refrencing your code inside that snippet, the thing I’m confused about is where do I place your code. Can this function be called inside of my existing function, or should I be creating a separate snippet for this code (function(skuid){ var $ = skuid.$; $(function(){ // Find a Page Title component whose “Unique Id” property // has been set to “MyPageTitle” var pageTitle = $(‘#MyPageTitle’); // Get the editor for the Component var editor = pageTitle.data(‘object’).editor; }); })(skuid); and will the variables be accesible outside of this function?