Leanpub Header

Skip to main content

เกิดอยากจะเป็น โปรแกรมเมอร์ ด้วย Javascript

หนังสือสอน Javascript สำหรับผู้เริ่มต้นทุกคน

Authored by

https://youtube.com/sakkosama

ซื้อหนังสือผ่านการโอนเงินง่ายๆ แอดไลน์ @geekstart ได้เลยครับ

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
153
Readers
141
Pages
12,442Words
About

About

About the Book

ซื้อหนังสือผ่านการโอนเงินง่ายๆ แอดไลน์ @geekstart ได้เลยครับ

ผมเขียนหนังสือเล่มนี้เพื่อดึงดูดคนที่อยากเขียนโปรแกรมเป็น ถึงจะไม่ได้เรียนด้านนี้มา หรือว่าจะไม่เก่งเลขก็ตาม

หวังว่าจะทำให้คุณมองเห็นว่า คุณแค่ต้องเริ่มศึกษา คุณก็จะใช้ Computer ได้มากกว่าคนอื่นแล้ว

เมื่อคุณอ่านหนังสือเล่มนี้จบ การที่จะไปศึกษาต่อด้านนี้ก็จะง่ายขึ้น และอาจจะช่วยให้สมองทำงานแบบมี Logic ได้มากขึ้นด้วย

หนังสือเล่มนี้ เป้าหมายคือ ให้คนที่ต้องการเริ่มต้นจากศูนย์จริงๆอ่าน เมื่อจบแล้ว ไปเปิด Video VueJS ของผมดู สามารถเรียนต่อได้เลยครับ

Youtube channel sakkosama

ผมเขียนหนังสือเล่มนี้แบบตามใจตัวเอง

ภาษาไทยก็อาจจะแปลกๆไปบ้าง ตามเด็กที่ไม่ได้ใส่ใจเรียนภาษาไทยตั้งแต่เด็ก

หนังสือเล่มนี้ เป็นหนังสือแบบสอนตามใจคนเขียน โดยใช้ภาษา Javascript เป็นหลัก

เหตุผลที่ใช้ Javascript คือ

  1. เขียนบนคอมได้ทั้ง Windows และ MacOS
  2. เขียนเสร็จแล้วเอาไปรันบน Browser เช่น Chrome/Firefox/etc ได้ง่าย
  3. คนเขียนเยอะ มีความต้องการบุคคลากรด้านนี้สูงในตลาดโปรแกรมเมอร์ปัจจุบัน
  4. หาข้อมูลเสริมได้ง่าย
  5. เขียนได้ทั้ง Backend, Frontent Web Application, Mobile Application และ อีกหลายๆอย่าง

Javascript อาจจะไม่ใช่ภาษาที่ดีที่สุดสำหรับทุกๆคน แต่ผมเลือกตามใจผมเอง ส่วนตัวแล้วผมเป็นคนที่ชอบ ruby มากๆด้วยซ้ำ แต่ว่าก็ยังจะเลือกจะใช้ภาษานี้สอน

หวังว่าผู้อ่านจะชอบ และ สนุกกับการเขียนโปรแกรมนะครับ

Price

Pick Your Price...

Minimum price

$9.99

$9.99

You pay

$9.99

Author earns

$7.99
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 1)

1
The author will earn $12.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

SaKKo Sama

I'm a self taught programmer with over 10 years experience.

I joined Leanpub to share my knowledge and experience.

I started my own company, a software house, in the year 2010.

I coded lots of projects throughout those years trying out lots of stuffs like

ObjectiveC, Ruby on Rails, Nodejs, Swift, Java, Kotlin, Dart, Golang, ionic, react-native, Vue, React, ....

Deployed them on a bunch for infrastructures

Bare Metal, Government Cloud, VPS, Digital Ocean, AWS, Google Cloud Platform, and on some Serverless arch

Taught Internet Programming to 70+ students in University as part-time lecturer in Thailand.

Trained over 100+ people in iOS Basic and Advance courses ages ago when there were no Swift.

Taught high school math for a year, 36 hours a week.

My dream is to start a school where all students can do what the love. (and not hate Math)

Obviously, it takes a lot of money to start a school. If you can fund me a few million $ to start a school in Thailand, Please contact me.

I hope you enjoy my books.

Visit my youtube channel at https://youtube.com/sakkosama

Contents

Table of Contents

1Introduction

2การจัดเตรียมอุปกรณ์

  1. 2.1Softwares ทั่วไป
  2. Atom
  3. Google Chrome
  4. Mac Terminal หรือ Windows Terminal
  5. 2.2Environment Setup
  6. NVM (NodeJS)
  7. การลง NodeJS โดยกำหนด Version เอง

3Data types เบื้องต้น and Variables

  1. 3.1Number
  2. Arithmetic Operator
  3. 3.2String
  4. 3.3Boolean
  5. 3.4ค่ากึ่ง false
  6. false
  7. null และ undefined
  8. NaN
  9. 3.5Data types อื่นๆ

4if else elseif

  1. 4.1การใช้ Terminal เบื้องต้น
  2. 4.2if condition
  3. 4.3else
  4. 4.4else if
  5. 4.5And &&
  6. 4.6Or ||
  7. 4.7Multiple And Or

5Functions

  1. 5.1หัดสร้าง Function
  2. Function แบบรับข้อมูล
  3. 5.2console.assert
  4. 5.3การส่งค่ากลับจาก Function
  5. 5.4Arrow Function

6Built-in Functions

  1. 6.1Number
  2. Number.isFinite(x)
  3. Number.parseInt(s)
  4. 6.2Math
  5. Math.pow(base, exponent)
  6. Math.abs(x)

7var let const

  1. 7.1var
  2. 7.2let
  3. 7.3const
  4. 7.4using variable with function
  5. 7.5Arrow function usage
  6. 7.6Reserve Words

8Objects / Array

  1. 8.1Object
  2. Object with function
  3. 8.2Array
  4. Object with Array
  5. 8.3Array of Objects
  6. 8.4Array of anything

9For loops

  1. 9.1Simple for loop
  2. แบบฝึกหัดสั้นๆ
  3. 9.2Looping an Array

10While loops

  1. 10.1While Loop
  2. 10.2Do While

11User Input

  1. 11.1readline module

12Date Time

  1. 12.1Date Methods
  2. การดึงค่าจาก Date
  3. การเปลี่ยนค่าใน Date

13Node Package Manager (npm)

  1. 13.1npm init
  2. 13.2Moment JS

14Promise

  1. 14.1resolve .then
  2. 14.2reject .catch

15Async Await

  1. 15.1Async Await
  2. 15.2resolve values
  3. 15.3reject values
  4. try catch finally

16Looking inside array

  1. 16.1Find using for loop
  2. 16.2Find using .filter
  3. 16.3Find using .find
  4. 16.4Pulling data from array using .map

17HTML with Javascript

  1. 17.1HTML
  2. 17.2Javascript in HTML
  3. 17.3Javascript in action

18Easy Challenges

  1. 18.1วิธีทำแบบฝึกหัด
  2. 18.2เริ่มแบบฝึกหัด

19ไปต่อกันเถอะ

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub