Trying to pull values from a property to create custom coded module

Hi - I am looking to be able to pull the values from a property - which I can then use in my custom coded module to use. Something like this is what I am trying to acheive:
console.log("This is the field trying to popuplate: " + {{ contact.email }}); or any property really - just need the method to pull in the value from the property.

Hi @wadefitzgerald,

You will probably want to use a HubL function called “crm_object”. This allows retrieving and displaying contact properties in modules/templates.

Just FYI, as per the documentation, contact properties can only be displayed on either password protected pages or pages with CMS Membership login for security purposes.

Hope this helps!