I am trying to access dynamic variable in js. This is how I am creating dynamic variable:
var marker{{$working_order->user_id}} = new google.maps.Marker({
position: address,
map: map,
});
after that when any event happen I want to call that variable again like this:
console.log('marker'+data.user_id)
But this time it is not variable it is just a string is there any way I can access it as variable?
Map, instead.