Cpp Get Substring Javascript Function Syntax Parameters Vs Perimeters