For a very simple example, if I want to log the value of my name to the console, I can do something like this:
Here are two screenshots that show this works:
Let me know if I'm misunderstanding you and I'd be happy to take a further look!
How about vice-versa?
Hi @ruanngabriel external in what way? You attach a JS file hosted externally with HubL in it to a HubSpot hosted page? If so, no you cannot do that. You can write HubL inside of Design Manager hosted JS files, custom modules, and the head HTML/ footer HTML of pages/content settings but that is it.
External JS hosted in HubSpot. Like I'm writing the code in Design Manager.
Yep, that's possible!