<s>[INST] I'm looking for a way to check if a value exists in an array. I'm trying to figure out if it would be more efficient to use a for loop or Array.prototype.includes() to do so. 

Here's an example array of student names:
```javascript
const students = ['John', 'Mary', 'David', 'Emily', 'James'];
```
I want to check if "John" is in the array. 

I was thinking of using a for loop like this:
```javascript
function hasStudent(name) {
  for (let i = 0; i < students.length; i++) {
    if (students[i] === name) return true;
  }
  return false;
}
```
Or maybe Array.prototype.includes() like this:
```javascript
function includesStudent(name) {
  return students.includes(name);
}
```
How do you think these two methods compare in terms of performance?[/INST]