Tag
JavaScript
31 articles tagged with JavaScript.
-
Detecting Hallucinations in Language Models with Natural Language Inference
A practical look at why hallucinations occur in modern language models, why current evaluation methods make them persist, and how to detect them using Natural Language Inference in JavaScript.
-
Consuming Streamed LLM Responses on the Frontend: A Deep Dive into SSE and Fetch
Learn how to build a responsive, real-time user experience by consuming streamed Large Language Model responses on your frontend. This article provides a comprehensive guide to using both Server-Sent Events (SSE) and the Fetch API with Readable Streams, complete with code examples and a detailed comparison.
-
call vs apply vs bind
In this article we take a look at the differences between call(), apply() and bind().
-
contains vs includes
This article explains the two, often mixed-up, contains and includes methods.
-
slice vs splice
This article explains the two, often mixed-up, slice and splice methods.
-
What Is Isomorphic JavaScript?
This article discusses isomorphic (universal) JavaScript and how it can be applied to a PWA without any frontend frameworks, relying only on vanilla JavaScript.
-
Using Decorators in JavaScript
This article discusses decorators used in JavaScript.
-
Optional Chaining Operator in JavaScript
The Optional Chaining Operator in JavaScript allows developers to safely check for the existence of deep nested properties in objects.
-
The future of JavaScript (ECMAScript 2019 and beyond)
In this article, we'll go through some of the features that are currently being considered to be added to JavaScript.
-
🍬Syntactic sugar, diabetes alert🚨
Syntactic sugar is everywhere in JavaScript. Most will say it's JUST syntactic sugar - a tiny bit of candy that makes your coding life sweeter. Well, is it? A little bit of sugar here, a bit there… and before we know it, we already need an insulin shot.
-
ES6 — Set vs Array — What and when?
Some can argue that Set has more advantages compared to Array. Others may wonder why there is a need for Set now (we have been doing pretty well without one until now). What exactly differs these two and when to use one over the other?
-
An Overview of ES2015 (ES6) Modules
This article focuses on the current state of Modules in the JavaScript ecosystem
-
Symbol, Iterator and Generator in JavaScript
In this article, we'll take a look at Symbols, Iterators and Generators in JavaScript (ES2015) and we'll also implement an interesting example of using all three technologies.
-
Why shouldn't JSONP be used?
JSONP is could be considered to be a useful way to avoid CORS errors however it has more cons than pros - this article discusses the most important factors.
-
Blockchain implementation using JavaScript
In this article, we are implementing a blockchain solution using JavaScript and while implementing, getting familiar with this emerging technology.
-
Hiding / removing elements in DOM using JavaScript
In this article, we'll take a look at how to hide and remove elements in DOM by using JavaScript, and we'll learn a few techniques and explain the differences between them.
-
Using Jasmine with JavaScript
Testing is an important aspect of development and in this article we'll take a look at how to add Jasmine unit tests to a JavaScript (ES6 / ES2015) code.
-
Promises in JavaScript
Promises in JavaScript are a powerful concept that allow us to write asynchronous code in a synchronous fashion with better error handling than callbacks.
-
Arrays and Objects in ES2015
A range of new capabilities have been added to JavaScript with ES2015 that helps us work with arrays and objects.
-
Rest Parameters, Spread Operator and Default parameters for Functions
Rest Parameters, Spread Operator and default parameters for Functions are all great additions for JavaScript ES2015.
-
Template Literals in ES2015
-
Promise anti-pattern
JavaScript promises have an important anti-pattern when it comes to using .then() with an error handler versus when using .catch() for handling errors.
-
Declaring variables in ECMAScript 2015
The way you have defined variables in JavaScript for the past decade has always been the same – by using the `var` keyword. In the latest version of JavaScript (ES2015) you can declare variables using let and const.'
-
Functions in JavaScript
The latest version of JavaScript (ES2015) allows us to write functions in a different way by using the arrow function syntax. This not only allows for terser function declarations but also has additional benefits.
-
Arrow functions in ES6 / ES2015
-
React components with ES6
-
Geospatial SPA using JavaScript only - part 2
-
Geospatial SPA using JavaScript only - part 1
-
JavaScript in a NoSQL database
-
Introduction to Grunt
-
Simple Chat application using node.js and socket.io