Answers for "create a function that takes two strings and compares if they are the same length javascript"

0

create a function that takes two strings and compares if they are the same length javascript

function comp(str1, str2) {
	if (str1.length == str2.length) {
		return true;
	} else {
		return false;
	}
}
Posted by: Guest on July-26-2021

Code answers related to "create a function that takes two strings and compares if they are the same length javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language