Skip to main content

Posts

Showing posts from May, 2020

How to retrieve data from database and Display in JSP Page?

How to retrieve data from database and Display in JSP Page? Watch here step by step:-

HOW TO RAISE MERGE REQUEST AND MERGE RAISED REQUEST IN GIT LAB?

HOW TO RAISE MERGE REQUEST AND MERGE RAISED REQUEST IN GIT LAB?

How to get url of current page in javascript? window.location in js.

This is very basic and hot question asking every time in interview. How to get current page url in js?  syntax :- window . location Location  { href : "https://boyonweb.blogspot.com/2020/05/how-to-use-every-function-in-javascript.html" , ancestorOrigins : DOMStringList , origin : "https://boyonweb.blogspot.com" , protocol : "https:" , host : "boyonweb.blogspot.com" , … } ancestorOrigins :  DOMStringList  { length :  0 } assign :  ƒ  assign() fragmentDirective :  FragmentDirective  {} hash :  " " host :  " boyonweb.blogspot.com " hostname :  " boyonweb.blogspot.com " href :  " https://boyonweb.blogspot.com/2020/05/how-to-use-every-function-in-javascript.html " origin :  " https://boyonweb.blogspot.com " pathname :  " /2020/05/how-to-use-every-function-in-javascript.html " port :  " " protocol :  " https: " reload :  ƒ  reload() replace :  ƒ  replace() search :  " ...

How to use every function in javascript? Best 5 example of every function in js.

JavaScript every Function -  Every Function :

How to use some function in javascript? Best 5 example of some function in js.

JavaScript some Function -  Some Function :

How to use filter function in javascript? Best 5 example of filter function in js.

Hey Everyone . Filter Function : the basic use of this function is to get details of record from Array according to some properties. The filter function is very helpful with JSON Array. Syntax : arrayname.filter((user define variable name)=>{return condition}); Lets understand this with basic examples : Q1. how to get all employees with gender male ?       var employee_list=[   {'id':'1','name':'Mukund Singh','gender':'M'}, {'id':'2','name':'Arun','gender':'M'}, {'id':'3','name':'Chanu','gender':'F'}, {'id':'4','name':'Main','gender':F'}                                              ] console.log(employee_list.filter((v)=>{return v.gender=='M'})); Here you will result : [ {'id':'1','name':'Mukund Singh','gender':'M'}, {'id':'2...