Defining a variable type

Report a typo

We are writing a function that takes an object of type Any as a parameter and checks whether it is an integer. If the object is an integer, then the function returns the square of that number. If the object is not an integer, the function throws an exception and returns an error message. Which operator do you want to use?

Select one option from the list
___

Create a free account to access the full topic