-3

I am new to JavaScript and I am working on a quiz for university.

How can I print the result of the following functions to see the result?

var x = 3;
var y = 12;
var z = "Ciao";

var r = y%x;

r=?

.var r = !(y === x*4);

r = ?

var r = (x--*6) >= y ? x : z;

r = ?

3
  • console.log() Commented Oct 19, 2021 at 8:55
  • output Commented Oct 19, 2021 at 8:55
  • Did you try googling "javascript print"? Commented Oct 19, 2021 at 8:59

2 Answers 2

0

The console.log() method writes a message to the console, you can use it.

var r = (x--*6) >= y ? x : z;
console.log(r);
Sign up to request clarification or add additional context in comments.

Comments

0

You can use this code to print, results will display in console tab of browser

console.log(r);

with Chrome use F12 to show developer tools, and click to Console tab.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.