I'm just trying to understand the difference between functions and methods, and parseInt() only brought more confusion to the table.
According to mdn web docs, it's a function:
The parseInt() function parses a string argument and returns an integer of the specified radix (the base in mathematical numeral systems).
While - for example - w3schools states it to be a method:
The parseInt method parses a value as a string and returns the first integer.
Which one is it, then - a function or a method? And for future cases, how can I intuitively 'tell the two apart'?