Question from the Node.js - Fundamentals test

Check if a string is a valid IP address in NodeJS