0
What is the result of the following expressions?
a) 2 + null = b) 'Alice' + null = c) null + 'Alice' =
3 Respostas
+ 2
In javascript the result was:
number+null = number. 3+null=3
null+number = number.
string+null= stringnull. "number"+null= numbernull
null+string= nullstring.
0
Martyna Tomaszewska the Sololearn playground is a good place to go to learn answers to questions like this. Choose your language, enter the expressions and output the results. It is much quicker than waiting for others to do it for you.
0
I had this question on the exam and they didn't said which language I should choose. So I am asking because maybe is some other way to do this :)