typescript convert string to number runtime code example
Example: typescript parse to string
window.location.hash = ""+page_number;
window.location.hash = String(page_number);
window.location.hash = ""+page_number;
window.location.hash = String(page_number);