Contact: aviboots(AT)netvision.net.il
38,933 questions
50,642 answers
573 users
function get_first_two_words(s) { var arr = s.split(" "); return arr[0] + " " + arr[1]; } var s = "javascript php c c++ python"; document.write(get_first_two_words(s)); /* run: javascript php */