Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,201,751 members, 7,979,556 topics. Date: Saturday, 19 October 2024 at 11:35 AM |
Nairaland Forum / Science/Technology / Programming / Help With Javascript (947 Views)
My Semester GPA Calculator With Javascript / How Do I Create Responsive Slider With Javascript / Please Help A Script Kiddie Out With Javascript (2) (3) (4)
Help With Javascript by lahp(m): 1:51pm On Sep 21, 2016 |
pls can someone pls help me to explain the string methods in javascript cos its kind of hard to understand...though i am enjoying my tutorials on w3schools and so far i understand what has been taught but on getting to the string method i kind of feel lost |
Re: Help With Javascript by Karleb(m): 4:59pm On Sep 21, 2016 |
Bro, download Javascipt the definite guide on Google, you can't become a good Is coder with w3school. That said. String method are data types that are not number, Boolean, integer, function, array... I.e Var str = 'i dont know string'; The variable 'str' here is a variable assigned to the string in the right side of the operand =. In short, strings are words or setence, you garrit? |
Re: Help With Javascript by tr3y(m): 6:20pm On Sep 21, 2016 |
String method are part of the String primitive data structure, its kind of like a conjoined twins a'int no separating them once you declare a string like var name = 'John' name has automatically inherited all the methods that string has like split, toUpper slice etc w3school barely scratch the surface though, codecademy is much better. |
Re: Help With Javascript by lahp(m): 7:17pm On Sep 21, 2016 |
Karleb: is it a book or what |
Re: Help With Javascript by lahp(m): 7:18pm On Sep 21, 2016 |
tr3y:can u explain the indexof slice and lastindexof |
Re: Help With Javascript by tr3y(m): 8:06pm On Sep 21, 2016 |
lahp:string.indexOf(pin) indexOf goes through the string and looks for the index of pin if its there it returns the index else it returns -1 lastIndexOf is the same as indexOf except it begin from the end of the string string.slice(x,y) this method slice/cut/divide the string starting from index x and ending at index y Open your console and play around with the language. |
(1) (Reply)
You Want To Be A WEB DEVELOPER? / The Three Laws Of Smart PC Backups / MAGENTO Developer Needed For Order Management
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 12 |