Skip to content

Commit 318a451

Browse files
committed
Minor fixings in type-convertions article.
1 parent 637d013 commit 318a451

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

1-js/02-first-steps/06-type-conversions/article.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,6 @@ alert( '1' + 2 ); // '12' (string to the left)
101101

102102
## تبدیل به boolean
103103

104-
The conversion rule:
105-
106-
- Values that are intuitively "empty", like `0`, an empty string, `null`, `undefined`, and `NaN`, become `false`.
107-
- Other values become `true`.
108-
109-
For instance:
110-
111104
تبدیل به boolean آسان‌ترین حالت است.
112105

113106
این مورد در عملیات منطقی (مانند عبارات شرطی که با آنها در بخش‌های بعدی آشنا خواهیم شد) رخ می‌دهد. همینطور به صورت مشخص نیز می‌توان با فانکشن `Boolean(value)` اینکار را انجام داد.

0 commit comments

Comments
 (0)