-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 = ?

2 Answers2

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);
Ran Turner
  • 14,906
  • 5
  • 47
  • 53
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.

DevinE
  • 149
  • 1
  • 4