(Solved):In HTML, what does Test do?

 

Question

In HTML, what does Test do?

 

EXPERT ANSWER

The test() method in javascript is used to check if a given pattern is available in a string. It is a case sensitive, regular expression method for searching if an expression is present within the string. It returns true if there is a perfect match or false if it is absent.

<!DOCTYPE html>
<html>
<body>
<p>The test() method returns a true value

Scroll to top