Basic JavaScript Discussion

1. JavaScript Types

  • Number
  • String
  • Boolean
  • Object
  • Null
  • Undefined

2. Createing Strings

Creating String with single and double quotes
Creating Strings with Template Strings

You can also create a strings with String Object

Creating String with String Object

3. JavaScript Strings Concat

Join Two Strings
Join Three Strings

4. JavaScript String indexOf () Method

JavaScript String indexOf
Return value -1

5. JavaScript String length


6. JavaScript Random Number — Math.random()

Random number

7. JavaScript Round — Math.round()


8. Create an Array

create an array

9. JavaScript Array push() Method

The push method adds new items to the ends of the array and returns the new array length

Syntex: array.push(value)


Push method

10. JavaScript Array pop() Method

Remove the last element of the array and returns that ements

Syntex: array,pop()


pop method