Driver Code
let arr = [ 10 , 20 , 80 , 30 , 60 , 50 , 110 , 100 , 130 , 170 ] ; let x = 130 ; let n = arr . length ; if ( search ( arr , n , x ) ) document . write ( " " ) ; else document . write ( " " ) ;