Skip to content

Chapter 1: Into Programming Ceviri #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions up & going/ch1.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# You Don't Know JS: Up & Going
# Chapter 1: Into Programming

Welcome to the *You Don't Know JS* (*YDKJS*) series.
Öncelikle hoşgeldiniz *Sen JavaScript Bilmiyorsun* "*You Don't Know JS* (*YDKJS*)" serisine.

*Up & Going* is an introduction to several basic concepts of programming -- of course we lean toward JavaScript (often abbreviated JS) specifically -- and how to approach and understand the rest of the titles in this series. Especially if you're just getting into programming and/or JavaScript, this book will briefly explore what you need to get *up and going*.

Expand All @@ -13,9 +13,9 @@ Once you feel comfortable with general programming basics, Chapter 2 will help g

If you're already fairly comfortable with JavaScript, first check out Chapter 3 as a brief glimpse of what to expect from *YDKJS*, then jump right in!

## Code
## Kod

Let's start from the beginning.
Hadi en başından başlayalım.

A program, often referred to as *source code* or just *code*, is a set of special instructions to tell the computer what tasks to perform. Usually code is saved in a text file, although with JavaScript you can also type code directly into a developer console in a browser, which we'll cover shortly.

Expand Down
12 changes: 8 additions & 4 deletions up & going/ch2.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# You Don't Know JS: Up & Going
# Chapter 2: Into JavaScript
# Bölüm 2: JavaScript'e Giriş

In the previous chapter, I introduced the basic building blocks of programming, such as variables, loops, conditionals, and functions. Of course, all the code shown has been in JavaScript. But in this chapter, we want to focus specifically on things you need to know about JavaScript to get up and going as a JS developer.
the previous chapter, I introduced the basic building blocks of programming, such as variables, loops, conditionals, and functions. Of course, all the code shown has been in JavaScript. But in this chapter, we want to focus specifically on things you need to know about JavaScript to get up and going as a JS developer.

Bir önceki bölümde, Sizlere bazı değişkenler, döngüler, Koşullamalar ve fonksiyonlar gibi programlamanın temel yapı taşlarını tanıttı. Tabii ki, gösterilen tüm kodu JavaScript olmuştur. Fakat bu bölümde, odaklanmak istediğimiz bir JavaScript bilmenizle beraber artık JS developer olmaya başlayabileceğiniz.

We will introduce quite a few concepts in this chapter that will not be fully explored until subsequent *YDKJS* books. You can think of this chapter as an overview of the topics covered in detail throughout the rest of this series.

Expand All @@ -11,9 +13,10 @@ Your journey to deeply learn JavaScript starts here.

**Note:** As I said in Chapter 1, you should definitely try all this code yourself as you read and work through this chapter. Be aware that some of the code here assumes capabilities introduced in the newest version of JavaScript at the time of this writing (commonly referred to as "ES6" for the 6th edition of ECMAScript -- the official name of the JS specification). If you happen to be using an older, pre-ES6 browser, the code may not work. A recent update of a modern browser (like Chrome, Firefox, or IE) should be used.

## Values & Types
## Değerler & Tipler

As we asserted in Chapter 1, JavaScript has typed values, not typed variables. The following built-in types are available:
Birinci bölümde söylediğimiz gibi, JavaScript yazım tipleri değil, yazdığınız değişkenler yazmamıştır.Aşağıdaki yerleşik değişkenler mevcuttur.

* `string`
* `number`
Expand All @@ -23,10 +26,11 @@ As we asserted in Chapter 1, JavaScript has typed values, not typed variables. T
* `symbol` (new to ES6)

JavaScript provides a `typeof` operator that can examine a value and tell you what type it is:
JavaScriptin sağladığı bir operasyon olarakn `typeof` bize değerimizin hangi tipten olduğunu gösterir.

```js
var a;
typeof a; // "undefined"
typeof a; // "undefined" "bilinmeyen"

a = "hello world";
typeof a; // "string"
Expand Down