Question: what is the difference between concat method and + operator to join strings?
Answer: concat() method takes arguments of string type only. + operator takes any type of argument and converts it to string type and then combine them. concat() takes concatenates two strings and return new string object only string length is greater than 0, otherwise it returns same object..