function takePic(){
var dataURL = canvas.toDataURL();
}
So i have this function in a script tag nested in my HTML. I have a separate js file to start the server. My problem is I want to use this variable/data in my js file but I don't know how to access it.