To specify the virtual root in programming code, use the ~ operator.
If you use the ~ operator, instead of a path, you can move your website to a different folder or location without changing any code:
var myImagesFolder = "~/images";
var myStyleSheet = "~/styles/StyleSheet.css";
var myStyleSheet = "~/styles/StyleSheet.css";
Practice Excercise Practice now