<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.7" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Prototype.js Kılavuzu - 6 yazısına yapılan yorumlar</title>
	<link>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/</link>
	<description>Türkçe AJAX Kaynağı</description>
	<pubDate>Mon, 12 May 2008 12:51:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.7</generator>

	<item>
		<title>eburhan tarafından</title>
		<link>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/#comment-475</link>
		<pubDate>Sat, 05 May 2007 10:36:53 +0000</pubDate>
		<guid>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/#comment-475</guid>
					<description>&lt;em&gt;$R(1,5).inject(0, function(acc, n) { return acc + n; })&lt;/em&gt; şeklinde toplayabilirsiniz.

Ayrıca &lt;a href="http://www.m3nt0r.de/devel/Prototype.chm" rel="nofollow"&gt;buradan&lt;/a&gt; api dökümanını indirebilirsiniz. Unuttuğunuz birşey olduğunda hızlıca bakabilirsiniz.</description>
		<content:encoded><![CDATA[<p><em>$R(1,5).inject(0, function(acc, n) { return acc + n; })</em> şeklinde toplayabilirsiniz.</p>
<p>Ayrıca <a href="http://www.m3nt0r.de/devel/Prototype.chm" rel="nofollow">buradan</a> api dökümanını indirebilirsiniz. Unuttuğunuz birşey olduğunda hızlıca bakabilirsiniz.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>ayşe tarafından</title>
		<link>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/#comment-474</link>
		<pubDate>Sat, 05 May 2007 10:28:29 +0000</pubDate>
		<guid>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/#comment-474</guid>
					<description>Dizidekilerin toplamını buluyorduk. Ama hangisi ile yaptığımızı hatırlayamadım.
var dizi = [1,2,3,4,5]
alert(dizidekilerin toplamı) // 15</description>
		<content:encoded><![CDATA[<p>Dizidekilerin toplamını buluyorduk. Ama hangisi ile yaptığımızı hatırlayamadım.<br />
var dizi = [1,2,3,4,5]<br />
alert(dizidekilerin toplamı) // 15
</p>
]]></content:encoded>
				</item>
	<item>
		<title>ayşe tarafından</title>
		<link>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/#comment-469</link>
		<pubDate>Thu, 03 May 2007 21:39:05 +0000</pubDate>
		<guid>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/#comment-469</guid>
					<description>Teşekkürler...</description>
		<content:encoded><![CDATA[<p>Teşekkürler&#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>orhan tarafından</title>
		<link>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/#comment-465</link>
		<pubDate>Thu, 03 May 2007 08:42:26 +0000</pubDate>
		<guid>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/#comment-465</guid>
					<description>Prototype içinde varmı böyle bir olay tam hatırlamıorum ama JavaScript için değişkenin değerini etkilemeyecek aritmetik işlemler ile bunu yapabiliyoruz

var numValue = stringValue - 0;
/* veya */
var numValue = stringValue * 1;
/* veya */
var numValue = stringValue / 1;

bir diğer yöntem de 

var numValue = Number(stringValue);

http://www.jibbering.com/faq/faq_notes/type_convert.html</description>
		<content:encoded><![CDATA[<p>Prototype içinde varmı böyle bir olay tam hatırlamıorum ama JavaScript için değişkenin değerini etkilemeyecek aritmetik işlemler ile bunu yapabiliyoruz</p>
<p>var numValue = stringValue - 0;<br />
/* veya */<br />
var numValue = stringValue * 1;<br />
/* veya */<br />
var numValue = stringValue / 1;</p>
<p>bir diğer yöntem de </p>
<p>var numValue = Number(stringValue);</p>
<p><a href="http://www.jibbering.com/faq/faq_notes/type_convert.html" rel="nofollow">http://www.jibbering.com/faq/faq_notes/type_convert.html</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>ayşe tarafından</title>
		<link>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/#comment-455</link>
		<pubDate>Tue, 01 May 2007 15:20:56 +0000</pubDate>
		<guid>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/#comment-455</guid>
					<description>Numarayı stringe çevirebiliyorum.
var a = 1234 ;
alert(typeof(a)); // number
var b = a.toString();
alert(typeof(b));  // string

alert(a==b);  // true
alert(a===b); // false

Ama stringi numaraya çeviremiyorum. Nasıl yapmam gerekiyor?</description>
		<content:encoded><![CDATA[<p>Numarayı stringe çevirebiliyorum.<br />
var a = 1234 ;<br />
alert(typeof(a)); // number<br />
var b = a.toString();<br />
alert(typeof(b));  // string</p>
<p>alert(a==b);  // true<br />
alert(a===b); // false</p>
<p>Ama stringi numaraya çeviremiyorum. Nasıl yapmam gerekiyor?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>ayşe tarafından</title>
		<link>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/#comment-454</link>
		<pubDate>Tue, 01 May 2007 15:02:43 +0000</pubDate>
		<guid>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/#comment-454</guid>
					<description>Sorun halloldu. 
var dizi = $R(1, 10).reject(function(n) { return 0 == n % 2; })
alert(dizi);  // 1,3,5,7,9</description>
		<content:encoded><![CDATA[<p>Sorun halloldu.<br />
var dizi = $R(1, 10).reject(function(n) { return 0 == n % 2; })<br />
alert(dizi);  // 1,3,5,7,9
</p>
]]></content:encoded>
				</item>
	<item>
		<title>ayşe tarafından</title>
		<link>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/#comment-453</link>
		<pubDate>Tue, 01 May 2007 14:36:02 +0000</pubDate>
		<guid>http://ajax-tr.com/prototype-6-enumerable-sayilabilir/#comment-453</guid>
					<description>Teşekkürler...
.reject fonksiyonunda mesaj kutusunun [1, 3, 5, 7, 9] göstermesini sağlayamadım. Nasıl olacaktı?</description>
		<content:encoded><![CDATA[<p>Teşekkürler&#8230;<br />
.reject fonksiyonunda mesaj kutusunun [1, 3, 5, 7, 9] göstermesini sağlayamadım. Nasıl olacaktı?
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
