skip to main content
joncoded
projects + snippets + thoughts
nooks / textbook pages

📒

code

[snippets]

JavaScript branching (if + else + elseif)

making decisions between or among conditions

📒

code

[snippets]

JavaScript looping (for + while)

making events happen again and again in JavaScript

📒

code

[snippets]

JavaScript functions

grouping code into actionable chunks

📒

code

[snippets]

JavaScript objects and JSON

collecting properties and values into containers

📒

code

[snippets]

JavaScript arrays

collecting several items in one container

📒

code

[snippets]

JavaScript higher-order functions

performing more powerful functions such as transforming and filtering arrays

📒

code

[snippets]

JavaScript modules

containing chunks of code for later re-use

📒

code

[snippets]

JavaScript delay handling

delaying and repeating events based on time

📒

code

[snippets]

JavaScript DOM manipulation

making changes to the HTML with JavaScript

📒

code

[snippets]

JavaScript error handling

responding to unsatisfactory data and actions

📒

code

[snippets]

JavaScript Date object

reviewing this calendar-oriented built-in object

📒

code

[snippets]

JavaScript Math object

reviewing this calculation-oriented built-in object

📒

code

[snippets]

JavaScript browser variables

more about JavaScript with the "user agent"

📒

code

[snippets]

JavaScript DOM access

accessing the HTML via JavaScript

📒

code

[snippets]

JavaScript DOM event handling

listening and responding to events (happenings)

📒

code

[snippets]

JavaScript data fetching

using other people's data sets with this function

📒

code

[snippets]

JavaScript escape sequences

employing special workarounds for special cases of strings

📒

code

[snippets]

JavaScript string interpolation

concatenating strings with variables in a neater arrangement

📒

code

[snippets]

JavaScript ternary operators

using optional shorthand ways to write if/else statements

📒

code

[snippets]

JavaScript nullish coalescing

using optional shorthand ways to write if/else statements

📒

code

[snippets]

JavaScript read-only objects

freezing objects to make them

⚛️

code

[snippets]

React — an introduction

summarizing the famous interface-building JavaScript library

⚛️

code

[snippets]

React — creating apps from scratch

starting a React app without create-react-app

⚛️

code

[snippets]

React and JSX

rendering HTML within JavaScript functions

⚛️

code

[snippets]

React components

separating concerns within a React app

⚛️

code

[snippets]

React props

passing data from a parent to a child component

⚛️

code

[snippets]

React state

keeping track of a component's changing variable values

⚛️

code

[snippets]

React conditional rendering

displaying content based on different situations

⚛️

code

[snippets]

React list rendering

displaying content from an array of objects

⚛️

code

[snippets]

React conditional styling

changing the look of the React app based on certain criteria

123

built with sanity + next.js in the early 2020s

github | telegram