Simple 4 line JavaScript solution
javascript\nvar searchBST = function(root, val) {\n    while(root) {\n        if(root.val === val) return root;\n        root = root.val > val ? root.left : roo
```javascript\nvar searchBST = function(root, val) {\n    while(root) {\n        if(root.val === val) return root;\n        root = root.val > val ? root.left : root.right;\n    }\n    return null;\n};\n```
['JavaScript']