Contact Update JavaScript

Does anyone have a good example for updating an existing contact through JavaScript?

I can use the Contact Id or the Email as the Id value.

Hi @KShiban
Thank you for reaching out to the Community!
I’d like to invite some community members who are subject matter experts to join this conversation.
@sylvain_tirreau @Anton @kosalaindrasiri - Would you be able to share any insights on this? Your expertise would be greatly appreciated.
Best,
Victor

You have a good example on the documentation to update a contact (click on “Node” on the right to have the example code in javascript, because you can only do it in backend and not in frontend). You have to use the contactId.