Converting Strings to Ints in JS?

New to JS and the different variable types are really causing most my problems lol…

I know there is “ToString” to convert numbers to strings, but how would I convert a string to an int?

int.Parse(yourString);

Also parseInt(string) and int.TryParse(string, out int) : boolean

–Eric