Showing posts with label JavaScript. Show all posts
Showing posts with label JavaScript. Show all posts

How and Why You Should Store React UI State in the URL

Have you ever used a complex web app with many features, modal windows, or side panels?

Learn Javascript Reduce method with 10 examples

The reduce method applies a function to every item of an array and accumulates the result iteratively from a starting point then returns a single value/object.

Reverse An Array - 3 Methods

Method 1 - Revere with For Loop and print

34 JavaScript Optimization Techniques to Know in 2021

 The life of a developer is always learning new things and keeping up with the changes shouldn’t be harder than it already is, and my motive is to introduce all the JavaScript best practices such as shorthand and features which we must know as a frontend developer to make our life easier in 2021.

Level up your JavaScript browser logs with these console.log() tips

console.log là một cái gì đó không thể thiếu với một người lập trình, một số tip sau sẽ nâng cao level console.log cho các bạn

Announcing npm7

It's been a very long and crazy ride but I'm happy to share that the project

11 JavaScript and TypeScript Shorthands You Should Know

There is a very fine line between writing clean and efficient code and writing code that only you can read.

Number Truncation in JavaScript

Use Math.trunc() to truncate a floating point number and return its integer part.

Tìm hiểu về Template Literals trong JavaScript

Trong phiên bản ES6 2015 đã thêm các template literals (kí tự chuỗi) vào JavaScript.

JavaScript Antipatterns — Arrays, JSON, and Regex

JavaScript lets us do a lot of things. It’s sometimes too forgiving in its syntax.

Why Proxy is a Gem in JavaScript?

What is a Proxy? What exactly does it do? Before explaining this, let’s look at a real-world example.

Should You Stop Using .forEach() in Your JavaScript Code?

Coming from a PHP background, when I first saw people utilizing .forEach() method to walk through their arrays, my nooby self thought nothing of it — it’s the same exact implementation of a standard for loop, I told myself.

JavaScript Design Pattern - Module Pattern

Module pattern là một loại pattern khá mạnh và được sử dụng rất phổ biến, với một số các đặc điểm sau:

Ways to Refactor JavaScript Code You May Have Missed

JavaScript is an easy to learn programming language. It’s easy to write programs that run and does something.

5 Simple Tips to Write Better Arrow Functions

In ECMAScript2015, the arrow function was added. It is more concise than traditional functions, and binds this lexically.

Chuyển văn bản thành giọng nói chỉ với 3 line code trong Javascript

Vào ngày đẹp trời rảnh rỗi và hết task thì mình có lên đọc mấy bài post trên dev.to thấy phần này khá exciting nên muốn translate và share lại cho mn

useSWR — My New Favorite React Library

For the last few months, I have been working on a NextJS application. It seems that every week it gets bigger and bigger.

Javascript Tips: slice, substr, substring

When I started studying Javascript, I saw a lot of string manipulation functions that seems to be doing the exact same thing.

Useful JavaScript array methods

Array is one of the most frequently used data structure in JavaScript.

A Handy Guide to Export and Import Modules for JavaScript and TypeScript

ECMAScript is a scripting-language specification standardized by Ecma International in ECMA-262 and ISO/IEC 16262.