Instant Download Get Programming With JavaScript First Edition John R Larsen PDF All Chapter
Instant Download Get Programming With JavaScript First Edition John R Larsen PDF All Chapter
com
https://textbookfull.com/product/get-programming-
with-javascript-first-edition-john-r-larsen/
https://textbookfull.com/product/get-programming-with-javascript-next-
new-features-of-ecmascript-2015-2016-and-beyond-1st-edition-jd-
isaacks/
textbookfull.com
https://textbookfull.com/product/reactive-programming-with-
javascript-1st-edition-hayward-jonathan/
textbookfull.com
https://textbookfull.com/product/get-programming-with-scala-
meap-v05-daniela-sfregola/
textbookfull.com
https://textbookfull.com/product/human-resources-in-healthcare-
managing-for-success-bruce-j-fried/
textbookfull.com
Kings of Lockdown (Brutal Boys of Everlake Prep #2) 1st
Edition Caroline Peckham & Susanne Valenti [Peckham
https://textbookfull.com/product/kings-of-lockdown-brutal-boys-of-
everlake-prep-2-1st-edition-caroline-peckham-susanne-valenti-peckham/
textbookfull.com
https://textbookfull.com/product/women-secrets-collective-wisdom-of-
the-last-5000-years-titansvision/
textbookfull.com
https://textbookfull.com/product/the-european-world-1500-1800-an-
introduction-to-early-modern-history-beat-kumin/
textbookfull.com
https://textbookfull.com/product/things-my-son-needs-to-know-about-
the-world-1st-edition-fredrik-backman/
textbookfull.com
The Crypt: a running example
Throughout this book, you develop a text-based adventure game called The Crypt.
Players can explore locations on a map, moving from place to place and picking up
items to help them solve challenges and get past obstacles. The last section of each
chapter uses what you’ve learned to develop the game further. You’ll see how the pro-
gramming concepts help you build the pieces that are then combined to produce a
large program.
MANNING
SHELTER ISLAND
For online information and ordering of this and other Manning books, please visit
www.manning.com. The publisher offers discounts on this book when ordered in quantity.
For more information, please contact
Special Sales Department
Manning Publications Co.
20 Baldwin Road
PO Box 761
Shelter Island, NY 11964
Email: orders@manning.com
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in the book, and Manning
Publications was aware of a trademark claim, the designations have been printed in initial caps
or all caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have
the books we publish printed on acid-free paper, and we exert our best efforts to that end.
Recognizing also our responsibility to conserve the resources of our planet, Manning books
are printed on paper that is at least 15 percent recycled and processed without the use of
elemental chlorine.
ISBN: 9781617293108
Printed in the United States of America
1 2 3 4 5 6 7 8 9 10 – EBM – 21 20 19 18 17 16
brief contents
PART 1 CORE CONCEPTS ON THE CONSOLE . .............................1
1 ■ Programming, JavaScript, and JS Bin 3
2 ■ Variables: storing data in your program 16
3 ■ Objects: grouping your data 27
4 ■ Functions: code on demand 40
5 ■ Arguments: passing data to functions 57
6 ■ Return values: getting data from functions 70
7 ■ Object arguments: functions working with objects 83
8 ■ Arrays: putting data into lists 104
9 ■ Constructors: building objects with functions 122
10 ■ Bracket notation: flexible property names 147
v
vi BRIEF CONTENTS
Get an account 10
1.5 The Crypt—our running example 11
Playing The Crypt 11 ■
Steps for building The Crypt 12
1.6 Further examples and practice 14
1.7 Browser support 15
1.8 Summary 15
vii
viii CONTENTS
variable names 24
2.4 The Crypt—player variables 24
2.5 Summary 25
add and display exits 158 Giving each place object its own
■
set of exits 159 Adding the exits object to the full Place
■
function 202
12.2 Generating random numbers with Math.random() 204
12.3 Further conditions with else if 206
Comparison operators 208
12.4 Checking answers in the quiz app 210
Multiple declarations with a single var keyword 211
Displaying a question 212 Moving to the next question
■
213
Checking the player’s answer 213 Handling a player’s
■
a user model 252 What’s next for the fitness app? 253
■
fitness app views 267 What’s next for the fitness app? 268
■
15.2 The Crypt—moving view code from Player and Place 268
Creating a view for players 269 ■
Creating a view for places 274
15.3 Talking to players—a message view 278
15.4 Summary 279
fitness app 283 What’s next for the fitness app? 284
■
views to use the new templates 362 Enter The Crypt 365
■
each place only once 380 Replacing the Map Data and Map
■
index 395
foreword
When John emailed me to ask if I would write a foreword for Get Programming with
JavaScript, I have to admit the main thing that got me on the hook was that he had
used JS Bin throughout the book to let readers try out live demos. JS Bin was created
in 2008 as a place for programmers to collaborate, test, debug, experiment, and share.
Education is close to JS Bin’s heart, so John’s background as a teacher and his practi-
cal approach seemed like a great fit with its ethos and purpose. I’m a firm believer
that getting your hands dirty with real code is a great way to learn, and being encour-
aged to create, extend, play, and rewrite, all in a safe, no-mistakes-barred space,
looked like a good idea for a beginners’ programming book.
As the developer of JS Bin, an application created with JavaScript, I’m always
excited to see JS Bin being used to teach beginners, and that’s exactly what John does
with this book. It goes without saying that different people in different contexts take
different lengths of time to learn programming. But they all benefit from a practical
approach. JS Bin, as a free resource requiring no installation, provides an instantly
accessible environment in which to learn, and this book provides the guidance to get
started, the support to keep practicing, and the encouragement to enjoy the adventure.
I remember seeing object dot notation well over 10 years ago and wondering how I
was supposed to Google “What does . mean?” If I’d had John’s gentle and thorough
introduction to JavaScript back then, I would have saved myself a lot of pain wading
through many failed search attempts! He doesn’t cover everything, but he takes his
time with key concepts, showing patience and consideration for readers and encour-
aging them to stretch their knowledge and build their skills. The variety of examples
xvii
xviii FOREWORD
really helps; there’s lots to get your teeth into, but also plenty of support and sugges-
tions for further practice. Don’t get lost in The Crypt—trust your guide. It builds into a
substantial project and should help you see how little pieces can make big apps.
I’ve had the privilege of creating a number of tools for the programmer commu-
nity, and a number of JavaScript tools in particular. Programming lets us make things
for fun, for profit, and for others, and it’s wonderful to welcome newcomers to the
fold; who knows what great ideas they’ll have as they build the next big thing (or the next
small thing!)? I’m thrilled that their first steps on such an exciting path will be on
JS Bin. Welcome! Create bins for your code, tinker, share, and build up your bank of
modules. Get Programming with JavaScript shows you how to manage your code bins and
combine them into bigger projects. (You even get to play with the HTML and CSS
panels on JS Bin!)
Enjoy the book, dear reader. I expect that by the end of it, you’ll have a firm grasp
of how to write JavaScript.
REMY SHARP
FOUNDER OF JS BIN
Visit https://textbookfull.com
now to explore a rich
collection of eBooks, textbook
and enjoy exciting offers!
preface
I started programming using the BASIC language on a Commodore VIC-20 in 1982. It
had 3.5 KB of RAM, and programming involved me copying a program from a maga-
zine, instruction by instruction and line by line. The process was time-consuming and
error-prone, but it certainly built focus and attention to detail! Rather than cut-and-
paste, it was read-and-type; but eventually, the program was transferred from the
printed page to the computer’s memory. Then the moment of truth … and alas, it
never worked the first time. And that’s where my learning really began.
Staring at the code, trying to make sense of the instructions and follow the flow of
the program as it jumped from line to line, I had to think carefully and patiently about
what was going on. Not everything made sense—sometimes squeezing a program into
3.5 KB required some seriously supple code gymnastics—but, bit by bit, the program’s
secrets would start to reveal themselves. Sometimes my typos stopped the program from
running; sometimes there were mistakes in the code itself. Most of the time, but not
always, I eventually got the program to run.
Half the time, the program would turn out to be rubbish! I’d reach out and hit
the VIC-20’s off switch, and the program would be gone forever. (It took five minutes
and a cassette-tape recorder to save, and some programs just weren’t worth it.) I
wasn’t usually upset, and I didn’t see it as a waste of time; from the start, I was amazed
by the transformation of text into a working program (even a rubbish one) on the
computer screen.
Today, in 2016, with our smartphones, tablets, drones, and AI Go champions, that
sense of wonder has grown even stronger. Programming is magical and transformative.
xix
xx PREFACE
Even knowing how it works, I still love how my typed instructions turn into a working
website, a fun game, or a useful utility.
As a teacher in the United Kingdom, I’m privileged to be able to teach 16 - and
17-year-olds programming. My philosophy is to let them get programming from lesson
one: to enter code and see the result as soon as possible. I want them to be curious
and experiment at all times. It’s great to see their eyes widen and their smiles grow as
they start their adventures in code and realize they can convert imagination into real-
ity. Online code-editing environments such as JS Bin allow them to quickly try out
ideas and build projects piece by piece. They don’t learn a long list of language fea-
tures before beginning; they learn a few concepts at a time, often in response to getting
stuck but also directly from me (they don’t know what they don’t know), and they prac-
tice and experiment before moving on. Their skills build day by day and week by week,
and code that might have seemed like cryptic hieroglyphs at the start of the course
becomes second nature by the end. It’s great to be a part of that learning process.
In addition to being a teacher, I’m also a programmer and develop education
applications, including ones for organizing, sharing, and booking resources; creating
online handbooks; planning lessons; managing timetables; and generating quizzes.
It’s great to see people using the applications as part of their day-to-day work; I’m
lucky to understand the target audience, being one of them myself, and to see first-
hand my applications used over an extended period—that’s great feedback!
I’ve reviewed a number of book manuscripts for Manning. Having seen my bio
describing me as a programmer and a teacher, Manning suggested that I write a book
of my own. Get Programming with JavaScript is my attempt at translating my approach to
teaching programming into book form. It’s packed with code listings to get you think-
ing about the concepts as you progress, and there are plenty of exercises and supple-
mentary materials online, as detailed shortly. I hope it fires your imagination and gets
you started on your own programming adventures. Good luck, and have fun!
acknowledgments
Thank you to Robin de Jongh at Manning for suggesting I write a book and to my edi-
tor Helen Stergius for her patience, advice, and support throughout the writing pro-
cess. Thanks also to all of the people who reviewed the book and provided excellent
feedback to make it better, including Philip Arny, Dr. Markus Beckmann, Rocio
Chongtay, Sonya Corcoran, Philip Cusack, Alvin Raj, Conor Redmond, Ivan Rubelj,
Craig Sharkie, and Giselle Stidston; in particular, thanks to Ozren Harlovic, Chuck
Henderson, Al Sherer, Brian Hanafee, and Romin Irani for their attention to detail,
honest reactions, and constructive suggestions.
I’d also like to thank Remy Sharp, the creator of JS Bin, for responding to my ques-
tions and requests quickly and positively, for being kind enough to agree to write the
foreword for this book, and for creating JS Bin!
Finally, I want to thank the people at Manning who made this book possible: pub-
lisher Marjan Bace and everyone on the editorial and production teams, including
Janet Vail, Mary Piergies, Tiffany Taylor, Linda Recktenwald, Dennis Dalinnik, Elizabeth
Martin, Bonnie Culverhouse, and many others who worked behind the scenes.
xxi
about this book
Get Programming with JavaScript is a book for beginners, for those with no programming
experience. It makes extensive use of online code listings on the JS Bin website, a
sandbox where you can experiment with the code and see the results instantly. There’s
no setup or installation required; if you’ve got internet access, you can just get pro-
gramming straight away. If you don’t have internet access, don’t worry, the printed list-
ings include helpful annotations, and all the ideas are explained in the text.
In addition to shorter examples to illustrate the concepts covered, there is an
ongoing example—a text-based adventure game called The Crypt—that you build as
you progress through the book.
xxii
ABOUT THIS BOOK xxiii
Roadmap
Get Programming with JavaScript has 21 printed chapters; an additional four chapters
are available online only from the publisher's website at www.manning.com/books/
get-programming-with-javascript. The book makes extensive use of code listings and
exercises, with successive examples building on previous work. I recommend you read
it in order, trying out the examples and exercises online and taking time to under-
stand the ideas presented.
Part 1 covers some of the core concepts of programming with JavaScript. It sticks
to using the text-based Console panel on JS Bin, letting you focus on the JavaScript
and not worry about web pages and HTML:
■ Chapter 1 looks at programming and programming with JavaScript in particular
before introducing JS Bin, a website where you can get programming right away,
and The Crypt, a text-based adventure game that you build as you progress
through the book.
■ Chapter 2 describes variables, a way of labeling and using values in your pro-
grams. Your variables can hold different types of values, like numbers or text,
but their names must follow certain rules.
■ In chapter 3 you learn how to group values into objects. Just like a first-aid kit can
be passed around as a single object and its contents accessed only when needed,
JavaScript objects can be treated as a single item and their properties accessed
when required.
■ Functions are central to JavaScript, helping you to organize your code and exe-
cute sets of instructions on-demand and multiple times. They are introduced
over four chapters, chapters 4 to 7, so that you get a firm grasp of how to define
them and use them, how to pass data to them and from them, and how they
work beautifully with objects.
■ Chapter 8 shows you how to create ordered lists, or arrays, of values. Whether
they hold blog posts, calendar events, users, functions, or movie reviews, lists
are very common in programming, and you learn how to create them and
access, manipulate, and remove their items.
■ Objects are at the heart of JavaScript, and programs often create many objects;
a calendar could have thousands of events and an adventure game dozens of
locations, for example. Constructor functions are a way of streamlining the cre-
ation of many similar objects, and chapter 9 investigates why they’re useful and
how you define them and use them.
■ In chapter 10 you meet square bracket notation, an alternate method of access-
ing the values stored in JavaScript objects. Armed with this more flexible way
of getting and setting object properties, you write some example programs
that can cope with unpredictable values that may appear in external data or
user input.
Random documents with unrelated
content Scribd suggests to you:
LETTER MCCCLXXX.
To Lady S―― S――.
Honoured Madam,
Then they received this blessing, “The Lord bless you and keep you,
the Lord lift up the light of his countenance upon you, the Lord
cause his face to shine upon you, and give you peace,” and so
returned to their places. Sacrament ended (and a blessed sacrament
it was) the Noble Mourners returned to good Lady H――n’s house,
which was lent them for the day. At eleven, public service begun.
The bereaved relations sat in order within, and the domestics around
the outside of the rail. The chapel was more than crouded. Near
three hundred tickets signed by the present Earl, were given out to
the nobility and gentry, to be admitted. All was hush’d and solemn.
Proper hymns were sung, and I preached on these words, “I heard a
voice from heaven, saying unto me, write, blessed are the dead that
die in the Lord.” Attention sat on every face, and deep and almost
universal impressions were made. The like scene, and if possible
more solemn, was exhibited in the evening, and I was enabled to
preach a second time, and a like power attended the word as in the
morning. Ever since, there hath been public service and preaching
twice a day. This is to be continued till Friday morning, then all is to
be removed to Bristol, in order to be shipped off for Scotland. The
inscription on the coffin runs thus;
“His life was honourable,—his death blessed,—he sought
earnestly peace with God,—he found it with unspeakable joy alone in
the merits of Christ Jesus, witnessed by the holy Spirit to his soul,—
he yet speaketh.—Go thou and do likewise.”
G. W.
LETTER MCCCLXXXI.
Bristol, December 12, 1767.
My dear Captain,
G. W.
LETTER MCCCLXXXII.
To Mr. R―― K――n.
My dear Friend,
G. W.
LETTER MCCCLXXXIII.
To the Reverend Mr. G――.
G. W.
LETTER MCCCLXXXIV.
To Mr. W――b.
My dear Sir,
In the midst of all your sorrow for the loss of so near and dear a
relation, methinks such a consideration may make you cry out,
Hallelujah! Amen! Come, Lord Jesus, come quickly. Blessed be God,
our turn will come by and by. Be ye also ready, is the loud call of the
present afflictive providence. That it may be duly heard, and
practically applied, is the hearty prayer of
G. W.
LETTER MCCCLXXXV.
To Mr. D――n.
I F you choose it, you may now be released; but the aspect of
affairs at home, is by no means promising. Many, many think of
going abroad. However, you will be so kind as to see the bearers of
this settled before you remove. Mr. C――ne, a worthy disinterested
creature, is to be steward of the house: he is a particular heart-
friend of Mr. W――t’s. Mr. W――t’s sister is an approved
housekeeper, and the little female orphans are to be committed to
her care. Mr. L――y hath had an university education, is a good
writer and accomptant, hath been with me some time, and is to be a
school-master. I long to know how poor Peter and Ephraim go on,
and likewise his sister at Savannah. I and Mr. W――t hope to follow
soon. But future things belong to Him who orders all things well. I
believe; Lord, help my unbelief. His work prospers. That is all in all.
Be pleased to have all accounts settled and audited, and take what
you please for your passage, if determined to return. But—but—God
keep you, through too fond affection, from taking a false step! My
heart is full. If you come away, and Mr. S――k also goes away, I
would have a letter of attorney given to Mr. C――ne. But it would be
well if I could hear from you first. God direct and bless you all. I can
only commend you to God and the word of his grace, and with ten
thousand thanks for all your labours of love, subscribe myself, very
dear friends,
G. W.
LETTER MCCCLXXXVI.
To Mr. J――ss.
My dear Man,
G. W.
LETTER MCCCLXXXVII.
To Mr. R―― K――n.
I HOPE this will find you and yours safe returned to London. I am
glad to hear by dear Mr. H――, that you left your daughter
better: may she be spared, not in judgment, but in mercy! Then all
will be well: nay, at all events, you may be assured all shall work for
good, because you love God. Glorious assurance this! Thanks be to
God for this unspeakable gift. Thanks be to his great name, for
ordering my steps this way. You would be delighted to see our
Orphan-house park assemblies; as large, attentive, and affectionate
as ever. Twenty-seven year old friends and spiritual children,
remember the days of old; they are seeking after their first love, and
there seems to be a stirring among the dry bones. I cannot yet tell
when I shall move. Probably within this fortnight. I must away to my
throne. Love to all at Tabernacle, and to all that are so kind as to
enquire after,
G. W.
LETTER MCCCLXXXVIII.
To Mr. A―― K――n.
My dear Timothy,
G. W.
LETTER MCCCLXXXIX.
To the Reverend Mr. T――.
My dear Friend,
Hallelujah!
G. W.
LETTER MCCCXC.
To Mr. R―― K――n.
G. W.
LETTER MCCCXCI.
To Mr. J――ss.
B LESSED be the God and Father of our Lord Jesus Christ, who hath
so mercifully preserved you in your going out and coming in,
and caused you to triumph in every place! You may continue your
gospel range, till Mr. E――ds leaves London; then we must think of
Winter quarters. Let us work whilst it is day. The late very
unexpected breach, is a fresh proof that the night soon cometh
when no man can work ¹. Pray where may I find that grand promise
made to Abraham after Sarah’s death? May it be fulfilled in you,
whilst your Sarah is yet alive! Sweet bereavements, when God
himself fills up the chasm! Through mercy I find it so. Adieu. Tender
love to all. Brethren, pray for us. I suppose I must direct to brother
Adams at Rodborough. He expects you there. That you may be
owned in every place more and more, heartily prays, my dear man,
G. W.
LETTER MCCCXCII.
To Mr. R―― K――n.
My dear Friend,
LETTER MCCCXCIII.
To the Same.
G. W.
G. W.
LETTER MCCCXCIV.
To Mr. D――n.
I WAS exceeding glad to find, by your last kind favour, that you and
Mrs. D――n thought of deferring your embarkation for England
till the Spring. You will then see the newcomers quite settled, and I
wish I could add, see also your reasons for leaving Bethesda but of
little weight. I know your mind. Would to God your dear yoke-fellow
was like-minded. She will certainly be so very soon after her arrival
in her native country: but I would not grieve her. God bless you
both! Brownhill’s situation I much approve of. Poor Peter often
engages my thoughts. It pleases me to find that he goes on well;
but I want to have him settled. If not likely to make a scholar, or be
in some good station in the house, I wish he was put out to some
proper business. Not one prize as yet among all the young relations
I have endeavoured to provide for. Father, not my but thy sovereign
will be done! I wish you could enquire what is become of ――, sent
over with Mr. Wooldridge, Provost-Marshall at Augustine. You may
guess that I long to see the accompts. I doubt not of their being
quite compleat. Could you not send me a duplicate before your
intended embarkation, it would be very acceptable for many
reasons. All your dear relations on this side the water are well. My
nearest relation hath been quite well above a month. Mr. Middleton
hath soon followed after. His wife died a few weeks before him.
G. W.
LETTER MCCCXCV.
To Mr. S―― S――.
G. W.
LETTER MCCCXCVI.
To Mr. R―― K――n.
My dear Sir,
G. W.
LETTER MCCCXCVII.
To Mr. S―― S――.
B LESSED be God for the art of writing! blessed be God for skill to
read and understand what is written! Thus we understand each
other, though at a thousand miles distance; thus I understand, and
by understanding learn to sympathize with my dear fellow-sufferer
Mr. S――. This is my comfort, that underneath him are the almighty
Redeemer’s everlasting arms. Therefore, being the beloved of the
Lord, he must dwell in safety. Though prevented by the weather
from using or drinking the Ramsgate waters, nothing can prevent his
using or drinking the waters of life freely. No, no: in every true
believer’s heart the Holy Ghost is a well of water springing up to life
eternal. Hence it is, that though he killeth, he maketh alive; though
he wounds, yet he heals. These words I was enabled to feel and
enlarge upon yesterday morning from my Tottenham-Court throne.
For some days the flux of blood hath stopped entirely. Praise the
Lord, O my soul! Lord Jesus, if it be thy blessed will, let me hear of
the recovery of my dear friend! Most cordial respects attend dear
Mrs. S――. God bless, support, and comfort her under her present
circumstances. Mr. Middleton is now made perfectly whole. He was
buried from the Tabernacle last Wednesday evening, and a
subscription is opened for his four orphans. In the midst of his
torturing pains, being asked by his daughter how he was, he
answered, “A heaven upon earth.” Soon afterwards he fell asleep in
Jesus. In Him I am, my very dear dear Sir,
Yours, yours, &c. &c. in our never-failing Jesus,
G. W.
LETTER MCCCXCVIII.
To Mr. R―― K――n.
G. W.
LETTER MCCCXCIX.
To Mr. A――s.
Cordial, most cordial respects await your whole self, and all who are
so kind as to enquire after, my very dear Tommy,
G. W.
LETTER MCCCC.
To W―― P――, Esq.
G. W.
LETTER MCCCCI.
London, December 15, 1768.
My dear Friend,
G. W.
LETTER MCCCCII.
To Mr. T―― A――ms.
G. W.
LETTER MCCCCIII.
London, January 13, 1769.
My dear Sir,
W ITH regret I send the inclosed; but alas! they were borrowed.
May the prayers put up for the writers, enter into the ears of
the Lord of Sabaoth. They will, they will. And what then? What then?
Why, they will turn out good soldiers of Jesus Christ. That this may
be their happy lot, earnestly prays,
G. W.
LETTER MCCCCIV.
To Mr. C―― H――y.
My dear Sir,
I HOPE this will find you safe arrived at Bath, in your way to
London. I thank God that matters have turned out no worse at
Plymouth. I see more and more every day, that things and persons
are only what an all-wise, almighty Jesus is pleased to make them.
Happy, happy they that have their all in Him, who is indeed our All in
All! This, I believe, is your happy lot. Grace! grace! This may teach
us to look to Jesus in all our concerns and motions. What his will may
be concerning my voyage to Georgia, I know not. At present the
cloud doth not move that way. But you may be assured, it never
entered my heart to think of embarking without settling the minutest
matter to mutual satisfaction. But more of this when we meet. Lord,
hasten our glorious meeting in the kingdom of heaven.
I hope all is well in Green-street. Hearty love to all. All here send
greeting. A good time at Mercer’s chapel. Grace! grace! I know you
will join in saying Amen, with, my dear Sir,
G. W.
LETTER MCCCCV.
To Mr. S――e.
G. W.
LETTER MCCCCVI.
To Mr. A――s.
O help my unbelief!
G. W.
LETTER MCCCCVII.
To Mr. and Mrs. D――.
My dear Friends,
I HOPE this will find you not only at, but fixed at Bethesda. Your
brother James yesterday told me, “He thought it best.” It is not a
time to think of leaving a happy wilderness now. There’s more noise
in great cities. I am every day, every hour, almost every moment,
thinking of and preparing for America. A pilgrim life to me is the
sweetest on this side eternity. I am daily expecting Bethesda
accompts. I am daily waiting for the kingdom of God. God bless my
poor negroes. I am always, my dear friends,
G. W.
LETTER MCCCCVIII.
To Mr. A――s.
G. W.
LETTER MCCCCIX.
To the Reverend Mr. S――y.