DEV Community

Cover image for ๐ƒ๐ž๐Ÿ๐ข๐ง๐ž ๐ฉ๐จ๐ฉ,๐ฉ๐ฎ๐ฌ๐ก,๐ฌ๐ก๐ข๐Ÿ๐ญ,๐ฎ๐ง๐ฌ๐ก๐ข๐Ÿ๐ญ ๐Œ๐ž๐ญ๐ก๐จ๐๐ฌ ๐ข๐ง ๐‰๐š๐ฏ๐š๐’๐œ๐ซ๐ข๐ฉ๐ญ
Jahid Iqbal
Jahid Iqbal

Posted on

๐ƒ๐ž๐Ÿ๐ข๐ง๐ž ๐ฉ๐จ๐ฉ,๐ฉ๐ฎ๐ฌ๐ก,๐ฌ๐ก๐ข๐Ÿ๐ญ,๐ฎ๐ง๐ฌ๐ก๐ข๐Ÿ๐ญ ๐Œ๐ž๐ญ๐ก๐จ๐๐ฌ ๐ข๐ง ๐‰๐š๐ฏ๐š๐’๐œ๐ซ๐ข๐ฉ๐ญ

๐ฉ๐จ๐ฉ(): ๐‘…๐‘’๐‘š๐‘œ๐‘ฃ๐‘’ an item from the ๐‘’๐‘›๐‘‘ of an ๐‘Ž๐‘Ÿ๐‘Ÿ๐‘Ž๐‘ฆ.

๐ธ๐‘ฅ๐‘Ž๐‘š๐‘๐‘™๐‘’
let players = ['Shakib', 'Tamim', 'Mushfiq'];
players.pop(); // ['Shakib', 'Tamim']

๐ฌ๐ก๐ข๐Ÿ๐ญ():๐‘…๐‘’๐‘š๐‘œ๐‘ฃ๐‘’ an item from the ๐‘๐‘’๐‘”๐‘–๐‘›๐‘›๐‘–๐‘›๐‘” of an array.

๐ธ๐‘ฅ๐‘Ž๐‘š๐‘๐‘™๐‘’
let players = ['Shakib', 'Tamim','Mushfiq' ];
players.shift(); // ['Tamim','Mushfiq']

๐ฉ๐ฎ๐ฌ๐ก(): ๐ด๐‘‘๐‘‘ items to the ๐‘’๐‘›๐‘‘ of an array.

๐ธ๐‘ฅ๐‘Ž๐‘š๐‘๐‘™๐‘’
let rivers= ['Meghna'];
rivers.push('Jamuna'); // ['Meghna', 'Jamuna']

๐ฎ๐ง๐ฌ๐ก๐ข๐Ÿ๐ญ(): ๐ด๐‘‘๐‘‘ items to the ๐‘๐‘’๐‘”๐‘–๐‘›๐‘›๐‘–๐‘›๐‘” of an array.

๐ธ๐‘ฅ๐‘Ž๐‘š๐‘๐‘™๐‘’
let fruits= ['Mango'];
fruits.unshift('Orange'); // ['Orange', 'Mango']

Top comments (0)