Search

Nalezeno "JavaScript": 798

Yet Another JavaScript Framework


On March 6, 2018, a new bug was added to the official Mozilla Firefox browser bug tracker. A developer had noticed an issue with Mozilla's nightly build. The report noted that a 14-day weather forecast widget typically featured on a German website had all of a sudden broken and disappeared. Nothing...

A historical look at lowercase defaultstatus


Browsers, thank heavens, take backward compatibility seriously. Ancient websites generally work just fine on modern browsers. There is a way higher chance that a website is broken because of problems with hosting, missing or altered assets, or server changes than there is with changes in...

Differential Serving


There is "futuristic" JavaScript that we can write. "Stage 0" refers to ideas for the JavaScript language that are still proposals. Still, someone might turn that idea into a Babel plugin and it could compile into code that can ship to any browser. For some of these lucky proposals, Stage 0 becomes...

Scroll-Linked Animations


You scroll down to a certain point, now you want to style things in a certain way. A header becomes fixed. An animation triggers. A table of contents appears. To do anything based on scroll position, JavaScript is required right now. You watch the scroll position via a DOM event and alter...

JavaScript Glossary: String lastIndexOf()


Basics The lastIndexOf() method returns the last position within a String object which an element can be found. The search starts from the last position of the String object.

JavaScript Glossary: String match()


Basics This method is a called against a regular expression and returns the matching values in the string. The return value is an array containing the matched values. If no matches are fo

JavaScript Glossary: String startsWith()


Basics The startsWith method takes a string parameter and checks if the calling string starts with the value provided. It returns a Boolean value, true

JavaScript Glossary: String toLowerCase()


Basics The toLowerCase() String method converts a string object to lower case. The return value of the method is the value of the calling string in lower case

JavaScript Glossary: String length


Basics The length property of the String object returns the number of code points in a string object. It indicates the length of the string

An Illustrated (and Musical) Guide to Map, Reduce, and Filter Array Methods


Map, reduce, and filter are three very useful array methods in JavaScript that give developers a ton of power in a short amount of space. Let’s jump right into how you can leverage (and remember how to use!) these super handy methods. Array.map() Array.map() updates each individual value in...

Understanding Event Emitters


Consider, a DOM Event: const button = document.querySelector("button"); button.addEventListener("click", (event) => /* do something with the event */) We added a listener to a button click. We’ve subscribed to an event being emitted and we fire a callback when it does. Every time we click that...

Build a Decentralized Web Chat in 15 Minutes


In this 15 minute tutorial we’re going to build a simple decentralized chat application which runs entirely in a web browser. All you will need is a text editor, a web browser, and a basic knowledge of how to save HTML files and open them in the browser. We’re going...

JavaScript Glossary: String trim()


Basics This method removes whitespaces from the start and end of the calling string. It removes spaces, tabs, no break spaces etc. It returns a new string stripped of whitespaces from both

JavaScript Glossary: String indexOf()


Basics This method checks for the first appearance of a provided string argument within the calling string and returns the index. It returns -1 if the string argument can’t be

Using <details> for Menus and Dialogs is an Interesting Idea


One of the most empowering things you can learn as a new front-end developer who is starting to learn JavaScript is to change classes. If you can change classes, you can use your CSS skills to control a lot on a page. Toggle a class to one thing, style it this way, toggle to another class...

Adding Search to Your Site with JavaScript


Static website generators like Gatsby and Jekyll are popular because they allow the creation of complex, templated pages that can be hosted anywhere. But the awesome simplicity of website generators is also limiting. Search is particularly hard. How do you allow users to search when you have...

JavaScript Glossary: String includes()


Basics The includes method checks a provided string against the calling String object, it returns true if the calling String object contains the provided string a

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace