jeudi 1 janvier 2015

Is there a right way to combine file path strings?


Is there a conventional way to combine file path strings?


In an example:



var assets = "images/"

var sounds = assets+"sounds/"


Is it more conventional to put the slash on the back of a file path?



var assets = "/images"

var sounds = assets+"/sounds"


Is there another method that is a good common practice?


Thanks, Thomas





Aucun commentaire:

Enregistrer un commentaire