Hello and welcome.
In this let's show were will be creating an object from a g song string.
String is also referred to as text.
I have got my text editor opened no power plus plus So I'm going to use these to create a song on string.
Create an object from a chase on strings.
So to begin with typing the hastier mail which is a dog type.
Put a question mark get them.
Then followed by the word doctype
and then nakes type it in between the dog type.
We need to specify hastier male.
I have already retained my code in my text editor on notepad plus plus so I'll explain the code to the
on line one is the dock type which is trucks.
The web browser that they type of documents to display is sent hastier mail document line to specify
it in paste here mail that the opening tag.
This is a close in tag line 3 is the body with hastier mail only text between the body tags are displayed
by the browser and then on line 5.
We've got deadheading this is the title for the page on line 7 is a paragraph tag with an idea of my
code.
My code is the value for this I attribute.
We'll use this later in return in value from the US from the J sun string.
So this is the script.
This is each have us script we are using javascript to interpret deejay's on string so it will pass
it.
That means interpret the soanes Trink saw to write JavaScript.
You need to enclose it inside the script tag.
So in between this tweak tab street tag is my java script on line 10.
I've declare the variable in javascript and the variable name is text and the value is my stuff to my
staff is a value and then it's an error.
If you notice the square brackets salary so I've given it Larry here and given it a.
Operator which is a plus size in my staff.
This is a quote.
Plotz So these are B various objects inside the very first name value.
Remember chase on value pair.
First name is a field.
The value is change.
Last and we separate elevators with a comma.
The name is halan So I'm adding the more Plus the first name here is chain value.
First name value chain.
Last name briquette Plus the plus is just an operator to add and then with the first name again angela
last name Jones saw on line 15.
This is an object.
He was to chase on Dot past.
This is a javascript function that will convert or interpret the adjacent string.
So to call that we unlike 16 we use in the documents don't get eliminated.
A day is a devil's group function.
The idea here is my code.
So what it's going to is going to replace this paragraph.
My code.
Wait what's here with it now.
Notice here mail in it email me.
Well voters here will be replaced by what I have specified here.
So you don't need to mount any cause to the object.
My staff.
My staff is variable.
Okay my style is the object which is this one here and then the number is in an array the first number
is zero.
So they want the value that I have passed here is 1 so to be to return this value of Jane bucket.
So the 0 is a fair value down one then two to be 0 1 2.
So I said return the value of the first nump first by leaving the area to number 1.
This second value and followed by the question pulled by quotes and then the.
I said Dot my staff.
Today is my staff here that means it will return first name and last name.
So if I execute this is true See issue see Jane bucket.
That's what they plonk me.
The plus is known as concatenation.
It is used to add two strings together.
The question marks leave quotes here.
I used to put a space between the names.
Okay so this is a script fire run this issue see Jane bucket.
All right so is safe here.
Jane bucket.
So Jim birkhead is the result of be hard put.
Okay.
So how to create just a title here Jim paquette.
Is this script here.
The output I have exited here.
So the objets here my staff picks out the first the second value in the hurry which is 1 The numbering
in is stars from 0 1 and so on.
So the fair value is always referred to as zero.
So he's picked out the second value which is this one here big that the first name plus which is had
is Miss concatenations who's going to add the first name is going to add a space and then add the last
name.
That's what this output is.
So in this ledger we have created an object from a chase on string.