Driver program
let str = " " ; let pattern = " " ; document . write ( " " + followsPattern ( str , pattern ) + " " ) ; str = " " ; pattern = " " ; document . write ( " " + followsPattern ( str , pattern ) + " " ) ; str = " " ; pattern = " " ; document . write ( " " + followsPattern ( str , pattern ) + " " ) ; str = " " ; pattern = " " ; document . write ( " " + followsPattern ( str , pattern ) + " " ) ;