W3Schools

 

home ANA SAYFA

JS Temel
JS ANA SAYFA
JS Giriş
JS Nasıl
JS Nereye
JS Değişkenler
JS Operatörler
JS Fonksiyonlar
JS Koşul Deyimleri
JS Döngüler
JS Esas Noktalar

JS Referencelar
JS Dizi
JS Boolean
JS Tarih
JS Matematik
JS String
JS HTML DOM

Örnekler/Quizler
JS Temel Örnekler
JS Öz Örnekler
JS DOM Örnekler
JS Quiz

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

JavaScript Esas Noktalar

previous next

JavaScript hakkında bazı şeyler bilinir. 


JavaScript hassas bir durumdur

"myfunction" fonksiyon adı "myFunction" ile aynı değildir. Bu nedenle değişkenler, fonksiyonlar ve nesneler yaratırken veya çağırırken büyük harflerinize dikkat edin.  


Semboller

Sembolleri bu şekilde açılır   ( { [ " ', Bu şekildede kapatılmalılar   ' " ] } ).


Boşluk

JavaScript fazladan boşlukları önemsemez. Kodunuzu daha okunaklı yapmak için boşluk ekleyebilirsiniz. Bu satırlar eşittir:

isim="Egemenlik"
isim = "Egemenlik"


Bir kod satırını parçalamak

Metin stringinin içindeki bir kod satırını ters slash ile parçalayabilirsiniz . Aşağıdaki örnek düzgün bir şekilde gösterilecek:

document.write("Merhaba \
Dünya!")

Not: Bir kod satırını bu şekilde parçalayamazsınız:

document.write \
("Merhaba Dünya!")

Yukarıdaki örnek hataya neden olacaktır.


Özel Karakterler Ekleme

Ters slash ile özel karakterler ekleyebilirsiniz (" ' ; & gibi) :

document.write ("Sen \& ben söylüyoruz \"Mutlu yıllar\".") 

Yukarıdaki bu örnek bu çıktıyı gösterecek:

Sen & ben söylüyoruz "Mutlu yıllar".


Açıklamalar

Javascript kodunuza, açıklamanın başına çift slash koyarak bir açıklama ekleyebilirsiniz "//":

toplam=a + b  //toplam hesaplanıyor

JavaScript kodunuza, açıklamanın başına "/*" ve bitimine "*/" koyarak bir açıklama ekleyebilirsiniz

toplam=a + b  /*toplam hesaplanıyor*/

"/*" ve "*/" çok satırlı bir açıklama yazılacağı zaman kullanılır :

/* Bu bir açıklama
bloğudur. Bİrkaç satır
içerir*/


previous next

Product Spotlight


Want To Be A Web Master?

If you want to be a Web Master, you will have to host your web site with an ISP (Internet Service Provider).

Maximum ASP is a service provider with a unique web hosting platform designed specifically for serious Microsoft developers. They offer high performance and stability at a good price with a 30-day, money-back guarantee.

They have access to all of Microsoft's web technologies, and their support staff are 100% Microsoft-certified.

Visit MaximumASP


We Help You For Free. You Can Help Us!


Jump to: Top of Page or HOME or Printer Friendly Printer friendly page


What Others Say About Us

Does the world know about us? Check out these places:

Google  Yahoo  Alta Vista  MSN  Lycos  Excite  Ask Jeeves  HotBot


W3Schools is for training only. We do not warrant the correctness of the content. The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.

Copyright 1999-2005 by Refsnes Data. All Rights Reserved.


Validate Validate Validate W3Schools was converted to XHTML in December 1999
SITE SEARCH
 
About W3Schools
Shopping Cart
ASP.NET
Shopping Cart
WEB HOSTING
$15 Domain Name
Registration
Save $20 / year!
UK Domain Names
Web Hosting

Registro de Dominios
Buy UK Domain Names
Register Domain Names
Cheap Domain Names UK
Web Hosting UK
Domain Names UK
Domain Names UK
Quality Web Hosting
Webmail & POP3 Email
Web Hosting UK
Dedicated Servers UK

Web Design UK
Ecommerce Solutions
Register a Domain
Offshore Outsourcing
WEB BUILDING
Website Templates
Website Builder
Flash Templates
Web Templates
Custom Programming
BEST Flash Templates
Website Log Analyzer
XML TOOLS
Stylus Studio
SHOPPING
Home Finance
Shopping UK
UK Wholesalers
UK Wholesale
Sunglasses
Yes Car Credit
Car Finance & Loans
Secured Loans UK
Secured Loans
UK Shops