Search

Nalezeno "Returns": 805

Blockchain Live Returns to London Olympia, 25th September 2019


London, UK – Taking blockchain mainstream, Blockchain Live is back and will be returning to London Olympia on 25 th September as a festival of blockchain education. A one-day event, packed with engaging, thought-provoking and quality content, this year Blockchain Live will be moving away from...

Get a CSS Custom Property Value with JavaScript


Here’s a neat trick from Andy Bell where he uses CSS Custom Properties to check if a particular CSS feature is supported by using JavaScript. Basically, he's using the ability CSS has to check for browser support on a particular property, setting a custom property that returns a value of either...

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 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...

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

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

Crypto Tax Season: What you need to know


The basics to keep in mind when filing your tax returns involving cryptocurrencies this year. From the CMC Editorial Desk: It’s… taaaax season. Before you panic, what do you need to know as you’re filing returns on your crypto? Find […] The post Crypto Tax Season: What...

JavaScript Glossary: String concat()


Basics This method is used to join the calling string and the provided string arguments. It returns a new String object containing the calling string and the provided arguments . If no arg

JavaScript Glossary: Array unshift() Method


Basics The unshift array method appends a number of values to the start of a given array. It then returns the new length of the array. This method can take a number of argumen

​​Avoiding those dang cannot read property of undefined errors


​​​​Uncaught TypeError: Cannot read property 'foo' of undefined.​ The dreaded error we all hit at some point in JavaScript development. Could be an empty state from an API that returns differently than you expected. Could be something else. We don’t know because the error itself is so general...

JavaScript Glossary: Array .splice() Method


Basics The splice array method changes an existing array by removing, adding and/or replacing specified elements from it. The method mutates the array and returns an array of

JavaScript Glossary: Array .slice() Method


Basics The slice array method copies a given part of an array returning the selected part as an array. It doesn’t mutate the given array rather, it returns a new array

JavaScript Glossary: Array .reverse() Method


Basics This method changes the position of elements within the array. The first element goes to the last position and the last element goes to the first position. The method returns the re

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