Nasıl bu PHP kodu JavaScript dönüştürebilirsiniz?
$string = "string How Long is a Piece of String?"; if (strlen($string) < 5) { echo "string is less than 5"; } else { echo "string is more than 5"; }