Javascript Method

JavaScript Method Array Methods Adds one or more elements to the end of an array. push(): Removes the last element from an array. pop(): Removes the first element from an array. shift(): Adds one or more elements to the beginning of an array. unshift(): Returns a shallow copy of a portion of an array. slice(): Changes the contents of an array by removing or replacing existing elements. splice(): Returns the first index at which a given element is found in the array. indexOf(): Calls a function for each element in the array. forEach(): Creates a new array with the results of calling a provided function on every element in the array. map(): Creates a new array with all elements that pass the test implemented by the provided function. filter(): Applies a function against an accumulator and each element in the array (from left to right) to reduce it to a single value. reduce(): String Methods Combines two or more strings. concat(): Returns the character at the specified index. charAt(): Returns the index within the calling string object of the first occurrence of the specified value. indexOf(): Returns the part of the string between the start and end indexes. substring(): Extracts a section of a string and returns it as a new string. slice(): Converts a string to uppercase. toUpperCase(): Converts a string to lowercase. toLowerCase(): Removes whitespace from both ends of a string. trim(): Object Methods Returns an array of a given object's own property names. Object.keys(): Returns an array of a given object's own enumerable property values. Object.values(): Returns an array of a given object's own enumerable property [key, value] pairs. Object.entries(): Math Methods ...

November 23, 2023 · 2 min · 365 words · kidtz

Learn by Doing

Berdasarkan artikel" yang saya baca & pengalaman saya dalam belajar: Ada 2 tahapan dalam belajar: INPUT & OUTPUT. Misalkan, Anda ingin belajar ber-sepatu roda, Anda melihat tutorial ber-sepatu roda di YouTube (INPUT). Setelah melihat tutorial" di YouTube, Anda mem-praktek-kan-nya (OUTPUT). Ketika Anda mem-praktek-kan-nya, Anda membuat kesalahan: Beberapa kali kehilangan keseimbangan & jatuh. Anda berusaha menganalisa kesalahan" tersebut, sehingga Anda tidak terjatuh lagi. Semakin sering Anda mem-praktek-kan apa yang Anda pelajari, semakin cepat Anda menguasai skill ini. ...

September 12, 2023 · 2 min · 340 words · kidtz

my note :-v

" Fokus Sama Proses, Bukan Hasil" " Berhentilah Menyesali, mulailah mesyukuri Berhentilah Meragukan, dan mulailah melakukan" " Ketika kamu lelah dan semakin ingin menyerah ketahuilah bahwa sesungguhnya, pertolongan Allah hanya berjarak kening dan sajadah " " You thinking so much, "

September 11, 2023 · 1 min · 41 words · kidtz

Git Cheatsheet

Git is a version control system that allows you to track changes to files and folders. It’s a powerful tool that can be used for everything from small personal projects to large-scale enterprise applications. This guide is a quick reference to the most common Git commands. It’s not meant to be a comprehensive guide to Git, but rather a quick reference to the most common commands. Here’s the revised git cheatsheet with improved section titles and reorganized: ...

September 10, 2023 · 8 min · 1595 words · kidtz

Kubernetes Beginner

Display Cluster Info Get The Kubernetes Cluster Information To get the Kubernetes cluster information, use the following command: kubectl cluster-info This command displays the Kubernetes cluster’s API server endpoint and the Kubernetes version: Get The Kubernetes Components Information To get the Kubernetes components’ information, use the following command: kubectl cluster-info dump This command displays detailed information about the Kubernetes components, including etcd, kube-apiserver, kube-controller-manager, kube-scheduler, and other Kubernetes system components. ...

July 11, 2023 · 2 min · 332 words · kidtz