10 interesting concepts on javascript….

  1. Forming an array from a string.
    It is quite an interesting and fun fact that we can make an array from a string.
  • Push method adds an element at the end of the array which is as same as enqueue operation.
  • Shift method removes the first item from an array. that means it’s a dequeue operation of which item entered first.
  • As LIFO sounds push() stores an item at the position of an array, and pop() method removes the element at the end of the array.

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

ReactJS Best practices — A Compilation

How Long Does It Take To Learn Javascript

What and Why ReactJS?

Why Angular 2 (4, 5, 6) sucks

Making a WYSIWYG Text Editor — Code Experiment

H1 Tryhackme KOTH (Medium Box) Writeup

JavaScript — Function Declarations vs. Function Expressions

Inheritance in JavaScript

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
Sagar Biswas

Sagar Biswas

More from Medium

How to get free UPX before you start playing Upland!

Grace, the gift that has kept on giving

Bright Initiative, upReach work to bridge data skills gap in UK

Where has POMO been?