The above should work fine, but you can also shorten that call a bit. $dataSkills is an Array, and Arrays in javascript have a built-in findIndex() function that does basically the same thing as the code shockra wrote above, but is a bit less to type. You pass it whatever condition you want, and it will return the index of the first item in the array that passes that condition (or -1 if no item was found). So you can write something like:
JavaScript:
var index = $dataSkills.findIndex((skill) => skill && skill.name === NameOfTheSkillYouWant);
if (index > -1) $gameActors.actor(1).learnSkill(index);
As above, if you have multiple skills with the same name, it'll just learn the first one in the database.
It's also worth mentioning that javascript string comparisons are case sensitive, so in this case "Fire" + "Storm" would not be equal to "Firestorm" (because you'd be searching for "FireStorm" instead). So in that case, both of the above methods would fail and you wouldn't actually learn the skill. If your game is entirely in English, you can just make them both uppercase (or lowercase) to get a case-insensitive match:
JavaScript:
var index = $dataSkills.findIndex((skill) => skill && skill.name.toUpperCase() === NameOfTheSkillYouWant.toUpperCase());
if (index > -1) $gameActors.actor(1).learnSkill(index);
This way, setting name you want as "Fire" + "Storm" would cause you to learn a skill called "Firestorm". If your game is only in English, then you can stop here. If you have any plan of supporting additional languages, then it gets a little more complicated:
JavaScript:
var index = $dataSkills.findIndex((skill) => skill && skill.name.localeCompare(NameOfTheSkillYouWant, undefined, { sensitivity: 'accent' }) === 0);
if (index > -1) $gameActors.actor(1).learnSkill(index);
That will always get you the correct skill, even if you translate your game into a language with special characters, like Russian or Japanese. It's probably more than you need in this case, but worth knowing nonetheless!