codedamn

Arrays

Created by Codedamn about a year ago

0

No description provided

9 Comments

    0

    Thanks

    @cyberr

    Cyber

    @cyberr

    0

    Const mehulMohan = ['B','e','s','t',' ','T','e','a','c','h','e','r']; Const codeDamn = mehulMohan.map((x) => { return; });

    console.log(codeDamn);

    @snipkillernn99

    Nipun gupta

    @snipkillernn99

    1

    Can You Provide a CheatSheet for the functions it will be a great help as some functions are a bit confusing to use

    0

    Why the output is giving in separate new lines? code: let myFriends = [];

    function addtoList(friends) { myFriends.unshift(friends) console.log(myFriends); }

    addtoList('KT'); addtoList('BT'); addtoList('DT', 'CT');

    @oshyam

    Shyam Mohan Kunwar

    @oshyam

    0

    4.83k views till 22-12-22

    0

    how do we run the code in my playground?

    1

    Unshift -> to first, push -> to Last, pop-> removes the last value it also returns the value, [] index can change the value.

    @pratham070302

    Pratham Panthari

    @pratham070302

    0

    Hey what did he meant by knowing of index in the last part??

    @shailya0930

    Shailya Motegaonkar

    @shailya0930

    0

    you made me more confused

Your comment