Comparison · Programming books

Eloquent JavaScript, 4th Edition vs The Pragmatic Programmer, 20th Anniversary Edition: which fits your needs?

The Pragmatic Programmer, 20th Anniversary Edition ranks higher in our list of programming books (#2 against #5, score 92.5 against 89.5).

These are editorial scores for this category, not measured performance. Compare the limits and suitability below, and confirm current terms with each vendor. Publisher connections can affect the order.

How we rank Share

  • 89.5
    Editorial score
    92.5
  • 5
    Formats
    4
  • Yes
    Free to use
    No

Which should you choose?

Choose Eloquent JavaScript, 4th Edition if you want

Learning JavaScript and programming for free.

A free, conversational introduction to programming with JavaScript, with projects and exercise solutions. Its pace is slow for experienced developers, but the full text is free in several formats.

Choose The Pragmatic Programmer, 20th Anniversary Edition if you want

Working developers who want craft habits.

Language-neutral habits and craft advice for working developers, in print and ebook formats. It is paid, and its advice is general, so it ranks below the more technical books here for depth.

The main differences

  • Eloquent JavaScript, 4th Edition can be used for free; The Pragmatic Programmer, 20th Anniversary Edition requires payment.

Side by side

Eloquent JavaScript, 4th EditionThe Pragmatic Programmer, 20th Anniversary Edition
Score89.592.5
Rank in list#5 of 11#2 of 11
PriceFreeFree to read online; paperback copy sold separatelyPaidPaperback and ebook editions sold by the publisher
Free to useYesNo
FormatsRead online, PDF, EPUB, Kindle, PrintPDF, EPUB, Kindle, Print
AuthorMarijn HaverbekeDavid Thomas and Andrew Hunt
LevelBeginnerIntermediate
Free to read onlineYesNo
Latest edition4th edition, 202420th anniversary edition
Main focusProgramming and JavaScript from first principlesSoftware craft and habits
Best forLearning JavaScript and programming for freeWorking developers who want craft habits
Strengths
  • Free online, with PDF, EPUB and MOBI copies
  • Projects in the browser and in Node.js
  • Code sandbox and exercise solutions online
  • Language-neutral advice on software craft
  • Available as PDF, EPUB, MOBI and paperback
  • Short sections that are easy to reread
Limits
  • Slow pace for experienced developers
  • The paperback is separate from the free text
  • Advice is general, with few code details
  • No free edition of the full text on the publisher site
LinksVisit site Visit site

Questions about Eloquent JavaScript, 4th Edition vs The Pragmatic Programmer, 20th Anniversary Edition

Is The Pragmatic Programmer, 20th Anniversary Edition better than Eloquent JavaScript, 4th Edition?
The Pragmatic Programmer, 20th Anniversary Edition ranks higher in our list of programming books (#2 against #5, score 92.5 against 89.5). Eloquent JavaScript, 4th Edition is best for: learning JavaScript and programming for free. The Pragmatic Programmer, 20th Anniversary Edition is best for: working developers who want craft habits.
How do the price models of Eloquent JavaScript, 4th Edition and The Pragmatic Programmer, 20th Anniversary Edition compare?
Eloquent JavaScript, 4th Edition: Free to read online; paperback copy sold separately. The Pragmatic Programmer, 20th Anniversary Edition: Paperback and ebook editions sold by the publisher. Check each official site for current prices, billing periods, limits and renewal terms.