Q. What is the use of the includes() method in JavaScript?

  • (A) Checks if an array contains a specified value
  • (B) Adds a value to an array
  • (C) Removes a value from an array
  • (D) Replaces a value in an array
πŸ’¬ Discuss
βœ… Correct Answer: (A) Checks if an array contains a specified value
Explanation: includes() returns true if the specified value is found in the array.
Explanation by: Mr. Dubey
includes() returns true if the specified value is found in the array.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
62
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate