I'm trying to debug some js in the browser (Chrome specifically). How can I check what value is set for some_data and new_data?
I realized due to variable scope being confined to functions, some_data
and new_data
don't exist after the document ready() was executed.
$(document).ready(function(){
var some_data = [4, 8, 15, 16, 23, 42];
var new_data = some_data * 2;
});