This post is a part 4 of Creating a WordPress Admin Theme post series. In this tutorial I will show you how to display a widget in various position of WordPress dashboard page. WordPress doesn’t provide any API to change position of widget. Therefore we need to modify WordPress core $wp_meta_boxes variable to change position […]
A callback is a function that is passed to an another function. A callback may or may not be executed asynchronously. For example; function two() { return 2; } function x(y) { //execute y return y(); } console.log(x(two)); //2 Here two() is a function. We are passing it as […]
This post is a part 16 of ECMAScript 6 Complete Tutorial post series. JavaScript “Map” and “WeakMap” objects allows you to store collection of unique keys and their corresponding values. But there are some key differences between them. Here are the differences: They both behave differently when a object referenced by their keys/values gets deleted. […]
This post is a part 15 of ECMAScript 6 Complete Tutorial post series. JavaScript “Map” object is a collection of unique keys and corresponding values. Keys and Values can be object references or primitive types. 2D Arrays can store duplicate values but Maps don’t store duplicate keys, this is what makes it different from 2D […]
This post is a part 14 of ECMAScript 6 Complete Tutorial post series. JavaScript Set and WeakSet objects allows you to store collection of unique keys. But there are some key differences between them. Here are the differences: They both behave differently when a object referenced by their keys gets deleted. Lets take the below […]
This post is a part 13 of ECMAScript 6 Complete Tutorial post series. JavaScript “Set” object is a collection of unique keys. Keys are object references or primitive types. Arrays can store duplicate values but Sets don’t store duplicate keys, this is what makes it different from arrays. Here is code example on how to […]
This post is a part 12 of ECMAScript 6 Complete Tutorial post series. “0b” lets you create a number using binary of the number directly. Developers usually provide number in decimal representation and it was converted to binary and stored in memory but from ES6 onwards you can specify the binary of the number directly. […]
This post is a part 11 of ECMAScript 6 Complete Tutorial post series. “0o” is a new way of creating a number using octal value in ES6. Earlier to ES6, JS developers had to use “0” in front of numbers to specify its a octal number. JavaScript internally converts hexadecimal and octal numbers to decimal […]
This post is a part 5 of Web Cryptography API Tutorial post series. ⎗ Previous: Digital Signature using Web Cryptography API. In this tutorial I will show you how create a symmetric key using a passphrase and then encrypt or decrypt data using that generated key. Converting String to Array Buffer and Array Buffer to […]
Most Commented