Typescript Get Max Value Of Array Javascript Appendchild Example