Showing posts with label IIS. Show all posts
Showing posts with label IIS. Show all posts

Tuesday, March 06, 2018

Finding an element in a JavaScript array.

You can define an array in couple of different ways in JavaScript which essentially is a list of elements. In order to find whether a certain element exists or not, you need to use Array.includes() function as shown in the next example. The argument of this function is the element you want to know exists in the array. JavaScript is case sensitive.

Here is an example of a web page which you can test in your local IIS.



Here is what you see on the browser:




Friday, February 02, 2018

What does JSON.stringify() and JSON.parse() do?

JSON.stringify() takes a JSON Object as an argument and converts it to a JSON string. On the other hand JSON.parse() takes a JSON String as an argument and converts it to an Object.

Example of JSON.parse() here:
http://hodentekhelp.blogspot.com/2018/02/what-does-jsonparse-do.html

Example of JSON.stringify() here:
http://hodentekhelp.blogspot.com/2018/02/what-does-jsonstringify-do.html
DMCA.com Protection Status