logo
logo

Crypto Validator

Crypto Validator

Create a class named
CryptoValidator
that has a static method named
isValid
that takes in a cryptocurrency object with a
name
property and a
symbol
property, and returns true if the
name
and
symbol
are valid, false otherwise. Valid names are 'Bitcoin', 'Ethereum', and 'Litecoin'. Valid symbols are 'BTC', 'ETH', and 'LTC'.
Console
Submit
Solution
00:00