Truncate A String, freeCodeCamp Review Basic Algorithm Scripting lesson 9 VIDEO
In this freeCodeCamp challenge we look at truncating a javascript string. Javascript strings can be truncated with the slice method. The slice method will allow us to extract a section of a string that we specify. The first argument it takes is where you want to start the extraction from. The second is where you want the extraction of the string to end and it will go up to but not include that position. In this challenge we use an if else if condition to solve the challenge.
Other Videos By We Will Code 2017-07-05 Learn Javascript 2017, Loops, for loops, Codecademy 2017-07-05 Learn Javascript 2017, Loops, Looping by hand, Codecademy 2017-07-03 Learn Javascript 2017, Loops Introduction, Codecademy 2017-07-03 Learn Javascript 2017, Arrays, Review Arrays 2017-07-01 Learn Javascript 2017, Arrays, Pop Method, Codecademy 2017-06-27 Learn Javascript 2017, Arrays, Push Method, Codecademy 2017-06-22 Codewars, Welcome, Javascript Solution, Loop Through Object 2017-06-16 Codewars, Dollars and Cents , 2017 Javascript Implementation 2017-06-13 Codewars, Calculate Average, Javascript ES6 Solution 2017-06-13 Codewars, Javascript Challenge, The 'if' Function, Algorithm Solution 2017-06-12 Truncate A String, freeCodeCamp Review Basic Algorithm Scripting lesson 9 2017-06-12 Repeat A String, Repeat A String, freeCodeCamp Review Basic Algorithm Scripting lesson 8 2017-06-12 Learn Javascript 20117, Arrays, length property, Codecademy 2017-06-10 Learn Javascript 2017, Arrays, Property Access, Codecademy 2017-06-10 Learn Javascript 2017, Arrays, Create an Array, Codecademy 2017-06-10 Learn Javascript 2017, Arrays, Codecademy 2017-06-09 Learn Javascript 2017, Review Scope, Codecademy 2017-06-09 Learn Javascript 2017, Scoping, Codecademy 2017-06-07 Learn Javascript, 2017 Functional Scope, Codecademy 2017-06-06 Learn Javascript, 2017 Global Scope, Codecademy 2017-06-02 Learn Javascript, Review Functions, 2017 Codecademy Review
Tags: javascript length method
length in javascript
truncate string
truncate javascript string