Skip to content

Clare Ivers

Menu

Clare Ivers

coding

Factory Functions in JavaScript – making more than one object

White Bay Power Station, Rozelle, Sydney

It’s pretty easy to make an object in JavaScript once you know the syntax, but if you want to make more than one of the same type of object, it’s better to do it from some kind of blueprint. This post is all about factory functions!

clario May 24, 2022June 8, 2022 Coding, JavaScript, Tech No Comments Read more

Cloning Objects in JavaScript

Jam Cookies - Cloning objects in Javascript Featured Image - Photo by amirali mirhashemian on Unsplash

In Javascript, assigning an object to another variable won’t create a copy of that object. Here are 3 methods that will successfully clone a JS object.

clario May 6, 2022July 3, 2022 Coding, JavaScript, Tech No Comments Read more
Copyright © 2022 Clare Ivers . All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.