JavaScript Design Patterns - Builder

Builder is one of the Creational Design Patterns, which help you deal with how objects are created. You should pay close attention to your object creation techniques that may morph into serious design problems if you neglect them....

June 8, 2021 · 6 min · Coderslang Master

Getting Started with Javascript Design Patterns

Design patterns are blueprint solutions that you use to solve common programming problems swiftly and elegantly. Everything began in 1994, when four computer scientists Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides, published an iconic book “Design Patterns: Elements of Reusable Object-Oriented Software”....

June 7, 2021 · 6 min · Coderslang Master

How to Call a JavaScript function in HTML

In this tutorial, you’ll learn how to call JavaScript functions from HTML pages to make them interactive. The HTML and CSS can structure a web, can give a web its appearance and responsiveness....

June 6, 2021 · 7 min · Coderslang Master

How to link JavaScript to HTML

You need JavaScript to define how your web pages interact with end-user. In this tutorial, you’ll learn the different methods to link a JavaScript code to an HTML file. Different methods to link JavaScript code to an HTML document You can link JavaScript code to an HTML document using <script> tag:...

June 3, 2021 · 2 min · Coderslang Master

What is JavaScript Used For and How to Run It

JavaScript is the de facto language to create web apps as it is the only language supported by browsers. Over time, JavaScript has evolved from only a programming language for the web to a Cross-Platform Object-Oriented Programming Language, that is, a programming language supported by multiple Operating Systems and it follows the Object-Oriented Programming paradigm, where everything is an object....

June 2, 2021 · 5 min · Coderslang Master

Java vs JavaScript. Key differences and similarities

The software programming world has progressed rapidly over time and has a lot of programming languages to offer. You might have heard about programming languages Java and JavaScript that sound similar in name and might have got confused about whether they’re different names for the same language or are they different....

May 30, 2021 · 6 min · Coderslang Master

How to Open JavaScript Files

JavaScript files have .js extension and you can open them using any text editor. Your options start with Notepad and advance into modern IDEs like Visual Studio Code or WebStorm. If you love the terminal environment, you can even use tools like vi, emacs, ed or nano....

May 23, 2021 · 1 min · Coderslang Master

How to Debug JavaScript Errors When Learning to Code

Introduction In this guide, we are going to learn how to debug JavaScript code as a beginner. Learning how to debug is one of the most important skills for developers to have....

May 20, 2021 · 9 min · Coderslang Master

How to Filter an Array in JavaScript

All JavaScript arrays have a built-in function .filter that allows you to filter certain elements and return a new array. To filter a JavaScript array, you need to write a function that will determine the filtering rule....

May 18, 2021 · 1 min · Coderslang Master

How to concatenate JavaScript array using join

JavaScript join function is built in to every JS Array. It’s very useful to join the elements of the JavaScript array and convert it into a string. Here’s the basic syntax:...

May 17, 2021 · 1 min · Coderslang Master