0

What is the result of the following expressions?

a) 2 + null = b) 'Alice' + null = c) null + 'Alice' =

5th Feb 2022, 10:48 AM
Martyna Tomaszewska
Martyna Tomaszewska - avatar
3 Antworten
+ 2
In javascript the result was: number+null = number. 3+null=3 null+number = number. string+null= stringnull. "number"+null= numbernull null+string= nullstring.
5th Feb 2022, 10:55 AM
Mohammed
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.
5th Feb 2022, 3:50 PM
Brian
Brian - avatar
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 :)
5th Feb 2022, 4:05 PM
Martyna Tomaszewska
Martyna Tomaszewska - avatar