0
I'm stuck on fill in the blanks to print the sum of two variables in Javascript.
The question is in JavaScript basic concepts. I don't know what to write on the System.out.println part
3 ответов
+ 2
int result = x+y;
System.out.println (result);
It is saying result = 2+ 4 , which is 6 so now result has the value of 6 and now print result. So it should output 6 to the console.
P.S This is Java, Javascript is a little different, though the same logic would apply but with different declarations and print methods.
+ 1
can you post the question?
0
int x=2; int y=4;
int result= x _ _;
System.out.println (__)
it's a fill in the blanks question