How would i go about printing my php array in my javascript code? i tried different things but it would only print out the last number.
In the code below where i wrote 'Print the array here', is where i would like to print my php array (if it wasnt already obvious).
PHP example:
$phpArray = array('bunch of numbers');
Javascript example:
let time_chart = new Chart(myChart, {
type:'line',
data:{
labels:['Week 1', 'Week 2', 'Week 3', 'Week 4'],
datasets:[{
label:'Minutes',
data:[
'Print the array here'
],