Where to start the journey of JavaScript(Part 1)- Md Iqbal Hossain

  1. String
  2. Number
  3. Boolean
  4. Function
  5. Object
const string1 = "This is string1";
const string2 = 'This is string2';
const string3 = `This is string3`;
return 'string'.charAt(1) // returns "t" as index starts from 0.

const str = 'Brave new world'

console.log('Index of first w from start is ' + str.indexOf('w')) // logs 8
console.log('Index of "new" from start is ' + str.indexOf('new')) // logs 6

Thank You

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store