repeatChar in Node.js

Background Let us continue with our task of seeing how repeatChar is coded in various languages. In this post, we will use JavaScript. Specifically, NodeJS.   Code Outline Function:-repeatChar ( char ch, int numberofChars) Declare Variables buffer as an array ( var buffer = [] ) Validate Arguments ch Check if ch is a string … Continue reading repeatChar in Node.js

Javascript:- Get time block

Background I need to get the current time in 15 minutes brackets.   Code   Output jsfiddle.net   Tools Online JavaScript Simulation Environment Upon Googling, discovered jsfiddle.net ( https://jsfiddle.net/ ). Went with it. Works a charm. Code Sharing Git / Gist Link https://gist.github.com/DanielAdeniji/77cfd4f40ed17a3fcaedd847f6cddc1a

JavaScript – Is WebStorage/DomStorage Enabled?

Definition First what is Web Storage/Document Object Model Storage (DOM)? https://en.wikipedia.org/wiki/Web_storage Web storage and DOM storage (Document Object Model storage) are web application software methods and protocols used for storing data in a web browser. Web storage supports persistent data storage, similar to cookies but with a greatly enhanced capacity and no information stored in … Continue reading JavaScript – Is WebStorage/DomStorage Enabled?