Are the Numbers Equal?

Published by Ty Lafitte in

Create a function that returns true when num1 is equal to num2; otherwise return false.

Pay attention to the data type as well.

Examples

is_same_num(4, 8) ➞ False

is_same_num(2, 2) ➞  True

is_same_num(2, "2") ➞ False

Notes

Don't forget to return the result.

Watch a quick demo on how Edabit works.