var cats = 8; var dogs = 9; var total = cats + dogs; console.log(total);
//Explanation //Number of cats var cats = 2; //Number of dogs var dogs = 3; //Calculate number of cats & dogs var total = cats + dogs; //Print the result console.log(total);
var cats = 8; var dogs = 9; var total = cats + dogs; console.log(total);
//Explanation //Number of cats var cats = 2; //Number of dogs var dogs = 3; //Calculate number of cats & dogs var total = cats + dogs; //Print the result console.log(total);