I have the following script.
As shown when you run the snippet, console.log
doesn't work.
How can I enable it?
datain = {
"threshold": 1.5,
"sample_response_score": 0.439,
//"celltype_response_thres": 0.064,
"celltype_response_thres": 'foo',
"histograms": [
{
"sample": "Sample1",
"nof_genes": 26,
"values": [
{
"score": 0.042924727328924939,
"celltype": "Bcells"
},
{
"score": 0.073045907156188195,
"celltype": "DendriticCells"
}]
}]}
jQuery(function ($) {
$.get(datain, function (data) {
console.log(JSON.stringify(data));
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>