Add an array in the middle on another associative array in php
Add an array in the middle on another associative array in php
Add an array in the middle on another associative array in php Read More »
Add an array in the middle on another associative array in php
Add an array in the middle on another associative array in php Read More »
Find the symmetric difference between arrays using javascript In mathematics, the symmetric difference of two sets, also known as the disjunctive union, is the set of elements which are in either of the sets, but not in their intersection. The mathematical term symmetric difference (△ or ⊕) of two sets is the set of elements
Find the symmetric difference between arrays using javascript Read More »
What is higher order functions? A function that takes or returns another function has become “higher-order”. Higher-order functions let us abstract common actions like map, filter, and reduce. Higher-order functions can be set as object properties. They are useful if you are calling a list of functions in response to an event. The javascript Event
Javascript higher order functions Read More »
Check if first letter of sentence is capital or not
Check if first letter of sentence is capital or not using Javascript Read More »
We will create a signup form with Email, Password, Role, Education etc. First on all install the vue cli Now create a vue project from the cli Now cd into web-form directory Here you can start the web server using below command Now lets start building the vue Signup form First go to src/components directory,
Create a SignUp form with Vue Js Read More »
Here we will take ROT13 encoded string as input and returns a decoded string.
Caesars Cipher using javascript arrow functions Read More »
Conditional rendering can be achieved using v-ifConditional display can be achieved using v-show First create a vue project using vue cli Now change directory start the server Lets start building the VUE component inside src/components/showHide.vue Remove HelloWorld.vue component and register showHide.vue component in App.vue Your showHide.vue component will look like this:
How to hide or show details using v-if and v-show directive in Vue JS Read More »
There are few ways to check vue js version: npm v vue run this on the terminal Check package.json, code will be something like this If you have vue dev tools installed then go to the Vue tab and you should be able to see the version there
How to check Vue js version Read More »
You can measure the performance of javascript code using console.time() function. This can be helpful in debugging and optimizing code which is taking lot of memory. console.time() can be used with console.timeEnd(). console.timeEnd() function tells console to stop calculating the time. You will see result as below: Running loop :0 timesRunning loop :1 timesRunning loop
Measure execution time of a function using javascript Read More »
1) Check Page type using is_page() function 2) Check Page using get_post_type() function 3) Check Page using post() function 4) Check Post type using is_single() function 5) Check Post type using get_post_type() function 6) Check Post type using get_post() function
Check if it’s a blog post or page in WordPress Read More »