Beginner JavaScript Tutorial – 31 – join and pop

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

20 responses to “Beginner JavaScript Tutorial – 31 – join and pop”

  1. Ashish Kumar Avatar

    can any one tell me why the variable name As "name" does not accept in java script.for example if i write a code
    var name= new Array("Ash","Ashish","abhinav","kumar");
    var string = name.join();
    document.write(string);

    this code will not generate desire output but if i will use the variable such as "people" rather than "name" then it will generate output.
    i.e
    var people = new Array("Ash","Ashish","abhinav","kumar");
    var string = people.join();
    document.write(string);

    output:Ash,Ashish,abhinav,kumar

  2. Naruto Rahat Avatar

    you like ham but ham is also unhealthy doctor say that

  3. Naruto Rahat Avatar

    thank you bucky roberts

  4. AJay Gupta Avatar

    Wow great explaination bucky!!!! Does anyone knows how to take input from user in javascript not forms.

  5. Dragos Avatar

    Avatar Will Vanilla Fight

  6. David Mozart Andraws Avatar

    go ahead and write the name of your shtring

  7. George Emad Avatar

    if anyone can help me with this.

    what pop();
    is used for why do i create an array then use pop to remove the last one ???

  8. Blake Wright Avatar

    thank you for the tutorial!! question, is all of this valid in 2017?

  9. shahid zarger Avatar

    why to convert an array into a string?

  10. Mayank Gupta Avatar

    pretty cool huh 😛

  11. xxqqzzaa Avatar

    don't talk about undefined.

  12. Dan Varlan Avatar

    Pretty much cool 😀

  13. Zolboo Otgonbaatar Avatar

    oh because of i forgot " " when giving value to movies.join( – ) , my code couldn't get printed . took so long to realize that .

  14. Lei Sheng Avatar

    You can also do the opposite to convert a string to array. Example:
    var string1 = "tuna – ham – bacon";
    var groceryList = string1.split(" – ");

    now groceryList is an Array object with "tuna", "ham", "bacon"
    🙂

  15. Vaibhav Phutane Avatar

    is this series of tutorial  enough ?

  16. TripJay21 Avatar

    When he said P- O – P I had to say "HOLD IT DOWN MOMMA I LOVE YOU"

  17. Rustam Turaev Avatar

    why put <br/> in quotation marks?

Leave a Reply

Your email address will not be published. Required fields are marked *