function myFunc(myNumber) {
if (typeof Number != myNumber){
alert("Вы передали не Number");
return myNumber
}
else{
return 10 + myNumber;
}
}
var myNumber = +10;
myNumber = myFunc(myNumber);
console.log(myNumber);