Sitemap

JavaScript Typing To Know Very Easly

2 min readMay 5, 2021

--

JavaScript String

js String is used to showing any kind of value text formatting. It’s Using syntax this type ‘kawcher habib’ code example

var phoneNum = ‘0987543876’; conts address = ‘Bangladesh’ ; output = ‘09875436Bangladesh’;

String Method

  1. charAt()

charAt Method use to find your value index from string example:-

const address = ‘Dhanmondi Dhaka Bangladashe’ ;

const index = 3

console.log(index.charAt(address)) output= n

remember that index number also start from 0……

2. conCat()

conCat() Method help string to string to addjust example:-

const fName = ‘habib’;

const lName = ‘kawcher’

console.log(fName.conCat(lName)) output = “habib kawcher”

3. endsWith()

endsWith() Method Use find your last word from string. it is give you output true or flase

example:-

let address = ‘ Dhanmondi Dhaka Bangladesh’;

console.log(address.endsWith(Bangladesh)) output = true

4. incloudes()

incloudes() Method help to search your word from string. it’s give you 2 output true/ flase

example:- const art = ‘this is my medium blog site’;

const yourWord = ‘medium’;

console.log(art.incloudes(yourWord)) output = true;

5. indexOf()

  1. lastIndexOf()
  2. replace()
  3. slice()
  4. splite() etc learn more

JavaScript Number

number is a primitive object to show number like this 23,25,26 etc. using without qutation

Get kawcher habib’s stories in your inbox

Join Medium for free to get updates from this writer.

code example

var number = 01765436463286

Number Mathod

  1. isNaN()
  2. parseFloat()
  3. parseInt() etc laern more

JavaScript Math

js math built-in object that has method used for the mathematical function. it’s work for just number

math method

  1. abs()
  2. ceil()
  3. floor()
  4. max()
  5. min()
  6. random()
  7. round() etc learn more

JavaScript Array

javaScript array is a class object it is used for construction array. Syntex of array []

code example const arra = [‘kawcher’, ‘habib’]

Array Method

  1. concat()
  2. filter()
  3. find()
  4. findIndex()
  5. forEach()
  6. join()
  7. lastIndexOf()
  8. map()
  9. pop()
  10. push()
  11. reduce()
  12. reverse() etc learn more

--

--