How to put skill name into a string.

so what i have been trying to do is something along the lines of
$gameVariables.setValue(1, $gameActors.actor(1).skill(1))
what i am trying to do is set the variable to the name of the first skill that the actor has learned. i haven't been able to find anything regarding how to do it, does anyone knows how to do that?
Code:
let skillname = $dataSkills[$gameActors.actor(1)._skills[1]].name;
$gameVariables.setValue(1, skillname);
Code:
let skillname = $dataSkills[$gameActors.actor(1)._skills[1]].name;
$gameVariables.setValue(1, skillname);
huh, thanks, this is exactly what i am looking for.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-put-skill-name-into-a-string.102858/