Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot get code to run on codepen.io

Go to codepen.io and run this code in teh picture in the JS window. Please help me to run this sample code

enter image description here

like image 610
Shihan Rehman Avatar asked Oct 30 '22 11:10

Shihan Rehman


1 Answers

check this updated pen

var multiply = function(a,b){
  return a + b;
}
document.body.innerHTML += multiply(3,6);

you need to manipulate dom to see values in the codepen console.

like image 92
gurvinder372 Avatar answered Nov 12 '22 11:11

gurvinder372