There are many data types in javaScript, such as Number, String, Object, array etc. Here we will discuss about some of the build in functions of String, Number and arrays and see how the string built in functions work with brief description. String : String is basically a collection of…