 Written in common time, the song is in the key of B major.Zac Efron's vocal range spans from E3 to B4 during the song, and Zendaya's vocal range spans from E3 to E5.Sam Damshenas from "GayTimes" called the song a "stunning duet" with perfectly fitting romance, and Michael Ordoña from the "Los Angeles Times" called the song "a standout duet" and "a signature karaoke duet".