Driver code
let str = " " . split ( ' ' ) ; let pattern = " " . split ( ' ' ) ; if ( strmatch ( str , pattern , str . length , pattern . length ) ) document . write ( " " + " " ) ; else document . write ( " " + " " ) ; let pattern2 = " " . split ( ' ' ) ; if ( strmatch ( str , pattern2 , str . length , pattern2 . length ) ) document . write ( " " + " " ) ; else document . write ( " " ) ;