Answer:
Follows are the correct code to this question:
var fizz; //defining a variable fizz
var bop;//defining a variable bop
bop = 10; //assign value in bop
fizz = 20; //assign value in fizz
bop = 100;//assign value in bop
fizz= 200; //assign value in fizz
console.log(bop);//print value of bop by using console.log
Output:
Please find the attached file.
Step-by-step explanation:
In the above-given code, the var keyword is used, which is defines two variable that is "fizz and bop", and in the next step, it holds integer values, and use the console.log method to print the bop variable value.
This method is used in JavaScript, to print any type of predefined variables in it, or we can say that it just use to print any message to be displayed to the user.