
    Write a function that converts database field names from the social network's backend (stored in snake_case) to JavaScript-compatible camelCase format for the frontend connection recommendation system. The function should handle field names like mutual_friends_count and last_interaction_date, maintaining the original meaning while following JavaScript naming conventions.
    

    
def snake_to_camel(word):
    """
    Write a function that converts database field names from the social network's backend (stored in snake_case) to JavaScript-compatible camelCase format for the frontend connection recommendation system. The function should handle field names like mutual_friends_count and last_interaction_date, maintaining the original meaning while following JavaScript naming conventions.
    

    """
import re

def snake_to_camel(word):
    """
    Write a function that converts database field names from the social network's backend (stored in snake_case) to JavaScript-compatible camelCase format for the frontend connection recommendation system. The function should handle field names like mutual_friends_count and last_interaction_date, maintaining the original meaning while following JavaScript naming conventions.
    

    """
    return ''.join((x.capitalize() or '_' for x in word.split('_')))