File System In Node.js

Node.js includes fs module to access physical file system. The fs module is responsible for all the asynchronous or synchronous file I/O operations. Reading File Use fs.readFile() method to read the physical file asynchronously. Writing File Use fs.writeFile() method to write data to a file. If file already exists then it overwrites the existing content […]

Code Snippet For Various WooCommerce Page URLs

1. Shop URL Get the WooCommerce Shop URL (this is the root category page) with the following: 2. My Account URL Get the WooCommerce Shop URL (this is the root category page) with the following: 3. My Account URL Get the WooCommerce Shop URL (this is the root category page) with the following: 4. Cart […]

Difference Between StudlyCaps and CamelCase?

According to PHP Standard Recommendations (PSR) – 1. Class names MUST be declared in StudlyCaps. 2. Class constants MUST be declared in all upper case with underscore separators. 3. Method names MUST be declared in camelCase. StudlyCaps, also known as PascalCase, implies that the first capital of each subword is capitalized. camelCase implies, like a […]