

It is a powerful developer-friendly natured language that lets you do single stuff in multiple ways so that our learning curve remains steep.

Javascript is dynamic and flexible programming as well as a scripting language. If the value exists in the array it will display "Present" and "Absent" accordingly. The logical flow of the program is to traverse through each element present in the array and check if the element is present. We have also defined a function under which the variable status is used as a string to mark if the elements are present in the program. In the above code snippet, we have defined an array with some values in the form of strings.
