Los bericht bekijken
Oud 9 januari 2012, 20:39   #91
Scherven A. Mok
Banneling
 
 
Geregistreerd: 21 april 2008
Berichten: 12.832
Standaard

> var myString
Oops, try again.> mySting = "hello"
==> helloOops, try again.> myString
Oops, try again.> myString = "hello"
==> hello> myString
==> helloOops, try again.> "hello".substring(0,2)
==> he> var three = "Allison".substring(0,3)
> three
==> AllOops, try again.> Allison
ReferenceError: Allison is not defined
Oops, try again.> "hello world".replace("hello","goodbuy")
==> goodbuy worldOops, try again.> "hello world"
==> hello worldOops, try again.> "coding rules".replace("coding","programming")
==> programming rules> toUppercase("wazdadallemaal")
ReferenceError: toUppercase is not defined
Oops, try again.> "wazdadallemaal".toUppercase(wazdadallemaal)
ReferenceError: wazdadallemaal is not defined
Oops, try again.> myString = "wazdadallemaal"
==> wazdadallemaalOops, try again.> "wazdadallemaal".toUppercase(wazdadallemaal)
ReferenceError: wazdadallemaal is not defined
Oops, try again.> wazdadallemaal.toUppercase()
ReferenceError: wazdadallemaal is not defined
Oops, try again.> "wazdadallemaal".toUppercase()
TypeError: "wazdadallemaal".toUppercase is not a function
Oops, try again.>
Scherven A. Mok is offline   Met citaat antwoorden