Setters in JavaScript. Check out parts 1 and 2 Setters in JavaScript There are three ways you can use setters: 1. Default method syntax 2. get keyword 3. Object.defineProperty() method We will now discuss the above three in detail. 1. Default method syntax The default method syntax can also be used for setters. Setters will set the property of the object to the value passed
What is the event loop anyways?
Introduction JavaScript is single-threaded this means that the main thread on which code is executed runs one line at a time. There is no possibility of doing anything in parallel. Therefore, the run time is blocked until a task is completed. An example of blocking the run time is an infinite loop. However, the DOM API, setTimeout() , setInterval() methods are provided by the web
Understanding the call stack
What is the call stack? An understanding of the call stack will allow you to understand how execution order in JavaScript works. JavaScript is a single-threaded language; this means that it handles one task at a time. JavaScript code is executed by the JavaScript engine. Google’s V8 engine is an example of a popular JavaScript engine, there are others such as the SpiderMonkey and Rhino.
Why I wrote The JavaScript Technical Interview Guide
Pre-Launch It’s been a busy 2 days, I pre-launched the JavaScript Technical Interview Guide and have sold 50% of the early bird copies. I made an announcement on Twitter and on Reddit. So far 280 upvotes on Reddit! Anyways keep reading – the juice is down below! So far I’ve emailed subscribers once with 80 practice coding exercises from chapter 1 (The Basics) . Besides
🎮UNITY3D course coming soon!
Note: I am aware of the current injustices in the world. This post does not intend to undermine the lives/issues of other humans currently #blacklivesmatter #1984genocide. Where ever we are on the planet we must live with kindness { Hello World! } I’m super excited to be making a Unity3D course with Newline! Newline formerly known as Fullstack.io is an online publisher for wholesome and
forEach( ), sort( ) and filter( ) for newbies
forEach() ES6 has introduced the forEach() method which allows you to loop through an array. Arrays as you may already know are of the type ‘object’. In contrast to the string,number,boolean, undefined and symbol types which are primitive data types. For example if we console.log the typeof operator to find the typeof array, objectwill be logged, as seen below: [code] const yummies = [‘Ice-cream’,’Cupcake’,’Donut’,’Cupcake’]; console.log(typeof
Line by Line: Node.js Server
Coding Worksheet # 5: OMG! Objects
OMG! Objects What are objects Objects are a data type. JavaScript follows an ‘object based paradigm’. Which means in JS an object is a stand-alone entity (object) with properties. Properties come in key: value pairs. They are like variables. In the sense that variables reference some value in memory. The same way, in objects the property key: value pairs are akin to variables. Why? Think
Coding worksheet #4: Callback functions
Just something I made as a primer. I’ve tried to condense as much information I could for ‘scoped’ learning [codepen_embed height=”300″ theme_id=”21517″ slug_hash=”ZRjGxr” default_tab=”html,result” user=”Kauress”]See the Pen You used to callback on my cellphone, code worksheet by Kauress (@Kauress) on CodePen.[/codepen_embed]
Newbie guide: socket.IO
Guide Introduction What happens? Summary Set up the main project directory Install dependencies Directory structure Create a server in index.js Set up index.html Test your server 10.Make your first socket connection Conclusion Resources Note: This guide covers till setting up socket.IO to be used. A chat app using socket.IO will ensue in part 2 Introduction Socket.IO is a JavaScript library which allows real time bidirectional