JavaScript Basic Concept
2 min readMay 5, 2021
JavaScript is a programming language. But it is not anyone another language. It is a scripting language. None of this legal input and output. Designed as a scripting language to run in a browser.
# JavaScritp String, Array, and Number method
# JavaScript String
- javascript String store multiple characters like “Shoman”
- String index array starts base zero.
#charAt()
- CharAt() method return new string a Single code.
- that return fast number index zero
# concat()
- Concat method use to tow or more string joined and return a new string
- It is no change but returns a new string.
#slice()
- Slice is a javaScript method.
- It does not change the main string but it is select from beginning to end return a new string
#indexOf
- indexOf method returns the specified value position in a string
- The method return value -1 if the value to search for never.
# JavaScript Array
The array an object used to store the multipole value of a single variable.
Example
const cars = [“Saab”, “Volvo”, “BMW”];
#every()
The values in the array are present. If the element being tested is ticked then a Boolean Man is released.
#JavaScript Number
The Number is a JavaScript building function. Converts bellows of different objects into numbers. If not convart a legal number that returns a value NaN.