XHRwe can update the page based on the user action.
XHR, we can make both synchronous and asynchronous requests.
let request = new XMLHttpRequest();
To configure the request, we can use the
open method of
XMLHttpRequest object. …
You can use
method to check if a primitive value present in an array , Consider we have an array
var num = [1,2,3,4,5];
indexOf() method returns the first index of the element in the array, if the searching element is not present in the array then it returns
num.indexOf(3); // 2num.indexOf(6); //-1num.indexOf('3'); // -1
NaN value is not handled in
var array = [NaN];array.indexOf(NaN); // -1
If your array can contain
NaN , then you can use
Requesting donation for my Badminton Training.
Hello Reader, My name is Jagathish Saravanan, I am from India. I am currently working as a Web developer , I love my Job , but once I started playing Badminton , I started loving Badminton more that anything , So I have decided to switch my carrer to Badminton, It is hard to manage my training expense , so I started writing Blog in Medium . But medium partner program is not supported in India. So I am requesting you to donate some amount .
You can donate me in PayPal :
Google pay: 8015851838.
Thank you so much for your time