Contact: aviboots(AT)netvision.net.il
39,990 questions
51,935 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 */