What I want to do is,
on my map, when I click somewhere on the map, it shows a marker on the point, then I click different point on the map then it shows a another mark
Every time placemarker() is ran, it creates a new marker.
placemarker()
You need to create the marker once outside of the placemarker function and after that, inside placemarker, use marker.setPosition().