how to add more work locations in google maps

Add Marker function with Google Maps API. Ask Question 24. 6. I have the following Javascript that includes both the standard Google Maps API initialize() function and custom addMarker() function. The map will load fine however the marker does not get added to the map.