Given the following JavaScript code snippet using Mapbox GL JS, identify the error that would prevent the map from displaying.
javascript
mapboxgl.accessToken = 'your.access.token';
var map = new mapboxgl.Map({
container: 'map', // container ID
style: 'mapbox://styles/mapbox/streets-v11', // style URL
center: [-74.50, 40], // starting position [lng, lat]
zoom: 9 // starting zoom
});