JavaScript
JavaScript is the language of the web — powering everything from interactive UIs to full-stack applications with Node.js. Explore tips, patterns, and best practices for modern JS development.
22 articlesHow to Get Started with Jest
2022/12/04·1 min readThis blog shows how to quickly get started testing JavaScript with Jest.
Use TypeScript with Google CloudFunction and Deploy locally
2022/10/01·4 min readThis blog shows how to set up TypeScript with Cloud Functions and deploy to Google Cloud locally.
Use Prettier to Format VS Code to Enforce Consistent Style
2022/08/01·2 min readHow to use Prettier with VS Code to enforce consistent code formatting style across your project.
Async Defer Inline or External Script Tag in JavaScript
2022/03/10·2 min readThe difference between async, defer inline and external script tag execution order.
How to Get Started with Sentry Error Tracking
2021/04/01·2 min readThis blog shows how to get started with Sentry.io for tracking JavaScript errors and performance.
WebSite Performance Improvement - Lighthouse
2021/03/04·1 min readTips and techniques for improving website performance using Google Lighthouse recommendations, including text compression, reducing unused CSS and JavaScript, and browser caching.
Javascript Splice vs Slice
2020/02/03·1 min readThis blog compares how to use Splice versus using Slice at JavaScript.
Javascript Push Pop Shift and Unshift
2020/01/05·2 min readThis blog show difference between the JavaScript Array's method push, pop, shift and unshift usage.
Start Use Gulp and Browserify to Build Angular App with Node.js
2016/04/01·3 min readGoogle Plus Share
2016/02/01·1 min readHow to implement Google Plus share into your web application.
How to Use Grunt with Keystone.js for Minifying CSS, JavaScript, and HTML
2016/02/01·2 min readHow to use Grunt to set up tasks in Keystone.js for minifying CSS, JavaScript, and HTML.
How to Add Facebook Share Button to the Page
2016/01/31·4 min readThis blog shows how to use Facebook share in 3 ways. Contains code snippets in HTML and JavaScript.
How to Use gigya to Share and Comments
2016/01/31·1 min readHow to use Gigya to share and comment
About Javascript Best Practices, ECMAScript 5
2015/12/29·3 min readEverything about Javascript ECMAScript 5.
A Memo for ECMAScript 5 - The Good, Bad, and Awful Parts
2015/12/04·4 min readA comprehensive guide to JavaScript quirks, pitfalls, and best practices based on Douglas Crockford's JavaScript - The Good Parts.
How to Highlight Code Blocks Using Prism
2015/10/31·1 min readPrism is a lightweight JavaScript and CSS library for syntax highlighting your code on the web.
Javascript Unit Test With Jasmine, Angular and Chutzpah with Visual Studio
2015/10/02·1 min readEnable javascript unit test at Visual Studio Test Explorer window
Angular Directive for Check Number Input
2015/05/01·1 min readA simple angular directive input text only accept number as 10 digits, but also length is configurable at view.
Example Code - How to Use Angular.js Location Hash
2015/05/01·1 min readangular location hash example code
Code Snippet - Sample Code for Beautify Json
2015/05/01·1 min readJavascript default behavior of load method
2014/08/02·1 min readWas curious and although I think I kind of know the result just want to do a check what's default javascript behavior to load themethod. Should I always put the method to the beginning of the script or the end of the script.
Few Useful Links About JavaScript Best Practices
2014/07/05·1 min readFew collections about best practices of JavaScript.