repl.it
@isreal/

print-function-eval-question

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*Define a function called “print” that takes one argument — toPrint — and logs toPrint to the console. Now, invoke that function.*/
function print(){
  console.log("toPrint");
}
print();

let myVariable = 2;
console.log(myVariable);
myVariable = 3;
console.log(myVariable);

const myData = 5;
console.log(myData);
myData = 6;
console.log(myData);


Native Browser JavaScript
?