Need to save multiple text to a variable

Need to save multiple text to a variable

 I need the text in the function to save to a variable.  It will run through each of the child text and than attach to data.  I'm willing to switch stuff up/rewrite a different way, I just need to know a way of getting this done

  1. $("#navigation").click(function(){
               
                var data;


  2.                 $("#navigation ul span li").each(function(){
                    data =  data + $(this).find(':first').text()
                    })


  3. alert(data)
  4. })