1
00:00:00,720 --> 00:00:02,460
Hello and welcome.

2
00:00:02,500 --> 00:00:10,040
In this let's show were will be creating an object from a g song string.

3
00:00:10,250 --> 00:00:14,920
String is also referred to as text.

4
00:00:15,060 --> 00:00:27,510
I have got my text editor opened no power plus plus So I'm going to use these to create a song on string.

5
00:00:27,570 --> 00:00:31,090
Create an object from a chase on strings.

6
00:00:31,410 --> 00:00:39,070
So to begin with typing the hastier mail which is a dog type.

7
00:00:49,690 --> 00:00:53,660
Put a question mark get them.

8
00:00:53,920 --> 00:00:55,690
Then followed by the word doctype

9
00:01:02,500 --> 00:01:06,670
and then nakes type it in between the dog type.

10
00:01:06,670 --> 00:01:10,070
We need to specify hastier male.

11
00:01:11,560 --> 00:01:22,530
I have already retained my code in my text editor on notepad plus plus so I'll explain the code to the

12
00:01:23,140 --> 00:01:28,420
on line one is the dock type which is trucks.

13
00:01:28,420 --> 00:01:37,940
The web browser that they type of documents to display is sent hastier mail document line to specify

14
00:01:37,940 --> 00:01:40,990
it in paste here mail that the opening tag.

15
00:01:41,020 --> 00:01:50,320
This is a close in tag line 3 is the body with hastier mail only text between the body tags are displayed

16
00:01:50,350 --> 00:01:54,190
by the browser and then on line 5.

17
00:01:54,190 --> 00:02:06,250
We've got deadheading this is the title for the page on line 7 is a paragraph tag with an idea of my

18
00:02:06,250 --> 00:02:07,090
code.

19
00:02:07,090 --> 00:02:12,240
My code is the value for this I attribute.

20
00:02:12,390 --> 00:02:21,030
We'll use this later in return in value from the US from the J sun string.

21
00:02:21,520 --> 00:02:23,780
So this is the script.

22
00:02:23,800 --> 00:02:32,620
This is each have us script we are using javascript to interpret deejay's on string so it will pass

23
00:02:32,620 --> 00:02:33,110
it.

24
00:02:33,140 --> 00:02:40,110
That means interpret the soanes Trink saw to write JavaScript.

25
00:02:40,120 --> 00:02:43,870
You need to enclose it inside the script tag.

26
00:02:44,170 --> 00:02:52,420
So in between this tweak tab street tag is my java script on line 10.

27
00:02:52,470 --> 00:03:04,900
I've declare the variable in javascript and the variable name is text and the value is my stuff to my

28
00:03:04,900 --> 00:03:08,430
staff is a value and then it's an error.

29
00:03:08,470 --> 00:03:18,510
If you notice the square brackets salary so I've given it Larry here and given it a.

30
00:03:18,970 --> 00:03:23,660
Operator which is a plus size in my staff.

31
00:03:23,780 --> 00:03:26,470
This is a quote.

32
00:03:26,520 --> 00:03:37,110
Plotz So these are B various objects inside the very first name value.

33
00:03:37,120 --> 00:03:39,630
Remember chase on value pair.

34
00:03:39,670 --> 00:03:41,680
First name is a field.

35
00:03:41,770 --> 00:03:43,960
The value is change.

36
00:03:44,320 --> 00:03:47,880
Last and we separate elevators with a comma.

37
00:03:48,040 --> 00:03:55,610
The name is halan So I'm adding the more Plus the first name here is chain value.

38
00:03:56,200 --> 00:03:58,630
First name value chain.

39
00:03:58,690 --> 00:04:07,180
Last name briquette Plus the plus is just an operator to add and then with the first name again angela

40
00:04:07,270 --> 00:04:11,110
last name Jones saw on line 15.

41
00:04:11,110 --> 00:04:12,750
This is an object.

42
00:04:12,750 --> 00:04:15,210
He was to chase on Dot past.

43
00:04:15,220 --> 00:04:22,220
This is a javascript function that will convert or interpret the adjacent string.

44
00:04:22,600 --> 00:04:28,570
So to call that we unlike 16 we use in the documents don't get eliminated.

45
00:04:28,650 --> 00:04:32,260
A day is a devil's group function.

46
00:04:32,260 --> 00:04:34,160
The idea here is my code.

47
00:04:34,240 --> 00:04:37,780
So what it's going to is going to replace this paragraph.

48
00:04:37,780 --> 00:04:38,840
My code.

49
00:04:38,840 --> 00:04:41,360
Wait what's here with it now.

50
00:04:41,470 --> 00:04:45,160
Notice here mail in it email me.

51
00:04:45,490 --> 00:04:50,160
Well voters here will be replaced by what I have specified here.

52
00:04:50,380 --> 00:04:56,100
So you don't need to mount any cause to the object.

53
00:04:56,140 --> 00:04:56,880
My staff.

54
00:04:56,890 --> 00:04:59,100
My staff is variable.

55
00:04:59,590 --> 00:05:10,210
Okay my style is the object which is this one here and then the number is in an array the first number

56
00:05:10,240 --> 00:05:11,390
is zero.

57
00:05:11,830 --> 00:05:20,940
So they want the value that I have passed here is 1 so to be to return this value of Jane bucket.

58
00:05:21,160 --> 00:05:27,040
So the 0 is a fair value down one then two to be 0 1 2.

59
00:05:27,220 --> 00:05:36,010
So I said return the value of the first nump first by leaving the area to number 1.

60
00:05:36,310 --> 00:05:46,920
This second value and followed by the question pulled by quotes and then the.

61
00:05:47,190 --> 00:05:50,130
I said Dot my staff.

62
00:05:50,300 --> 00:05:56,480
Today is my staff here that means it will return first name and last name.

63
00:05:56,740 --> 00:06:03,100
So if I execute this is true See issue see Jane bucket.

64
00:06:03,160 --> 00:06:04,560
That's what they plonk me.

65
00:06:04,570 --> 00:06:07,710
The plus is known as concatenation.

66
00:06:07,720 --> 00:06:11,830
It is used to add two strings together.

67
00:06:11,830 --> 00:06:14,170
The question marks leave quotes here.

68
00:06:14,170 --> 00:06:17,420
I used to put a space between the names.

69
00:06:17,560 --> 00:06:23,280
Okay so this is a script fire run this issue see Jane bucket.

70
00:06:25,360 --> 00:06:27,400
All right so is safe here.

71
00:06:27,440 --> 00:06:28,830
Jane bucket.

72
00:06:29,110 --> 00:06:35,180
So Jim birkhead is the result of be hard put.

73
00:06:41,140 --> 00:06:43,260
Okay.

74
00:06:43,470 --> 00:06:47,580
So how to create just a title here Jim paquette.

75
00:06:47,620 --> 00:06:49,590
Is this script here.

76
00:06:49,600 --> 00:06:52,610
The output I have exited here.

77
00:06:52,990 --> 00:07:02,480
So the objets here my staff picks out the first the second value in the hurry which is 1 The numbering

78
00:07:02,480 --> 00:07:05,310
in is stars from 0 1 and so on.

79
00:07:05,320 --> 00:07:07,920
So the fair value is always referred to as zero.

80
00:07:08,080 --> 00:07:15,430
So he's picked out the second value which is this one here big that the first name plus which is had

81
00:07:15,630 --> 00:07:24,190
is Miss concatenations who's going to add the first name is going to add a space and then add the last

82
00:07:24,190 --> 00:07:24,730
name.

83
00:07:25,000 --> 00:07:27,570
That's what this output is.

84
00:07:27,580 --> 00:07:37,590
So in this ledger we have created an object from a chase on string.
