ﺪﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ ﺩﻮﺧ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﻪﻤﻫ ﯼﺍﺮﺑ ﻥﺎﺴﮑﯾ ﯽﺴﯾﻮﻧﺪﮐ ﻦﯿﻧﺍﻮﻗ ﺯﺍ ﻪﺸﯿﻤﻫ
.ﺪﻨﺘﺴﻫ ﯽﺴﯾﻮﻧ ﻪﻣﺎﻧﺮﺑ ﯼﺍﺮﺑ ﯽﮑﺒﺳ ﯼﺎﻫﺩﻮﻤﻨﻫﺭ ﯽﺴﯾﻮﻧﺪﮐ ﯼﺎﻫﺩﺍﺩﺭﺍﺮﻗ
.ﻊﺑﺍﻮﺗ ﻭ ﺎﻫﺮﯿﻐﺘﻣ ﯼﺍﺮﺑ ﻥﻼﻋﺍ ﻭ ﯼﺭﺍﺬﮕﻣﺎﻧ ﻦﯿﻧﺍﻮﻗ
.ﺕﺍﺮﻈﻧ ﻭ ﯽﮕﺘﻓﺭﻮﺗ ،ﯽﻟﺎﺧ ﯼﺎﻀﻓ ﺯﺍ ﻩﺩﺎﻔﺘﺳﺍ ﻦﯿﻧﺍﻮﻗ
ﯽﺴﯾﻮﻧ ﻪﻣﺎﻧﺮﺑ ﻝﻮﺻﺍ ﻭ ﺎﻫ ﻩﻮﯿﺷ
:ﻦﻤﯾﺍ ﺖﯿﻔﯿﮐ ﯼﺭﺍﺬﮔﺪﮐ ﯼﺎﻫﺩﺍﺩﺭﺍﺮﻗ
ﺪﮐ ﯽﯾﺎﻧﺍﻮﺧ ﺩﻮﺒﻬﺑ
ﺪﯿﻨﮐ ﺮﺗ ﻥﺎﺳﺁ ﺍﺭ ﺪﮐ ﯼﺭﺍﺪﻬﮕﻧ
.ﺪﻨﺷﺎﺑ ﺎﻤﺷ ﯼﺩﺮﻓ ﯽﺴﯾﻮﻧﺪﮐ ﻦﯾﺮﻤﺗ ﻂﻘﻓ ﺎﯾ ،ﺪﻨﻨﮐ ﯼﻭﺮﯿﭘ ﺎﻬﻧﺁ ﺯﺍ ﺪﯾﺎﺑ ﻪﮐ ﺪﻨﺷﺎﺑ ﺎﻫﻢﯿﺗ ﯼﺍﺮ
.ﺪﻫﺩ ﯽﻣ ﺡﺮﺷ ﺍﺭ W3Schools ﻂﺳﻮﺗ ﻩﺩﺎﻔﺘﺳﺍ ﺩﺭﻮﻣ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﺪﮐ ﯽﻠﮐ ﻦﯿﻧﺍﻮﻗ ﻪﺤﻔﺻ ﻦﯾﺍ
.ﻢﯿﻨﮐﯽﻣ ﻩﺩﺎﻔﺘﺳﺍ (ﻊﺑﺍﻮﺗ ﻭ ﺎﻫﺮﯿﻐﺘﻣ) ﻪﺳﺎﻨﺷ ﯼﺎﻫﻡﺎﻧ ﯼﺍﺮﺑ camelCase .ﺪﻧﻮﺷ ﯽﻣ ﻉﻭﺮﺷ ﻑﺮﺣ ﮏﯾ ﺎﺑ ﺎﻫ ﻡﺎﻧ ﻪﻤﻫ ﺪﯾﺩ ﺪﯿﻫﺍﻮﺧ ﯼﺭﺍﺬﮕﻣﺎﻧ ﺩﺭﻮﻣ ﺭﺩ ﯼﺮﺗ ﻩﺩﺮﺘﺴﮔ ﺚﺤﺑ ،ﻪﺤﻔﺻ ﻦﯾﺍ ﻦﯿﯾﺎﭘ ﺭﺩ :ﺪﯾﺭﺍﺬﮕﺑ ﻪﻠﺻﺎﻓ ﺎﻣﺎﮐ ﺯﺍ ﺪﻌﺑ ﻭ (/* - +=) ﺎﻫﺮﮕﻠﻤﻋ ﺭﻭﺩ ﻪﺸﯿﻤﻫ :ﺪﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ ﺪﮐ ﯼﺎﻫ ﮎﻮﻠﺑ ﯽﮕﺘﻓﺭﻮﺗ ﯼﺍﺮﺑ ﻪﻠﺻﺎﻓ 2 ﺯﺍ ﻪﺸﯿﻤﻫ .ﺪﻨﻨﮐ ﯽﻣ ﺮﯿﺴﻔﺗ ﺕﻭﺎﻔﺘﻣ ﺍﺭ ﺎﻫ ﻪﮔﺮﺑ ﻒﻠﺘﺨﻣ ﯼﺎﻫﺮﮕﺸﯾﺍﺮﯾﻭ .ﺪﯿﻨﮑﻧ ﻩﺩﺎﻔﺘﺳﺍ ﯽﮕﺘﻓﺭﻮﺗ ﯼﺍﺮﺑ (ﺎﻫﺭﻮﺗ :ﻩﺩﺎﺳ ﺕﺍﺭﺎﺒﻋ ﯼﺍﺮﺑ ﯽﻠﮐ ﻦﯿﻧﺍﻮﻗ .ﺪﯿﻧﺎﺳﺮﺑ ﻥﺎﯾﺎﭘ ﻪﺑ ﻝﻮﮔﺮﯾﻭ ﻪﻄﻘﻧ ﺎﺑ ﺍﺭ ﻩﺩﺎﺳ ﺕﺭﺎﺒﻋ ﮏﯾ ﻪﺸﯿﻤﻫ :( ﺐﮐﺮﻣ ) ﻩﺪﯿﭽﯿﭘ ﯼﺎﻫ ﻩﺭﺍﺰﮔ ﯼﺍﺮﺑ ﯽﻠﮐ ﻦﯿﻧﺍﻮﻗ .ﺪﯿﻫﺩ ﺭﺍﺮﻗ ﻝﻭﺍ ﻂﺧ ﯼﺎﻬﺘﻧﺍ ﺭﺩ ﺍﺭ ﺯﺎﺑ ﺖﮐﺍﺮﺑ .ﺪﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ ﺯﺎﺑ ﺖﮐﺍﺮﺑ ﺯﺍ ﻞﺒﻗ ﻪﻠﺻﺎﻓ ﮏﯾ ﺯﺍ .ﺪﯿﻫﺩ ﺭﺍﺮﻗ ﻭﺮﺸﯿﭘ ﯼﺎﻫ ﻪﻠﺻﺎﻓ ﻥﻭﺪﺑ ،ﺪﯾﺪﺟ ﻂﺧ ﮏﯾ ﯼﻭﺭ ﺍﺭ ﻪﺘﺴﺑ ﺖﮐﺍﺮﺑ .ﺪﯿﻨﮑﻧ ﻡﺎﻤﺗ ﻝﻮﮔﺮﯾﻭ ﻪﻄﻘﻧ ﺎﺑ ﺍﺭ ﻩﺪﯿﭽﯿﭘ ﺕﺭﺎﺒﻋ ﮏﯾ :ﯽﺷ ﻒﯾﺭﺎﻌﺗ ﯼﺍﺮﺑ ﯽﻠﮐ ﻦﯿﻧﺍﻮﻗ .ﺪﯿﻫﺩ ﺭﺍﺮﻗ ءﯽﺷ ﻡﺎﻧ ﺎﺑ ﻂﺧ ﻥﺎﻤﻫ ﺭﺩ ﺍﺭ ﺯﺎﺑ ﺖﮐﺍﺮﺑ .ﺪﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ ﻥﺁ ﺭﺍﺪﻘﻣ ﻭ ﯽﮔﮋﯾﻭ ﺮﻫ ﻦﯿﺑ ﻪﻠﺻﺎﻓ ﮏﯾ ﻪﻓﺎﺿﺍ ﻪﺑ ﻪﻄﻘﻧ ﻭﺩ ﺯﺍ .ﯼﺩﺪﻋ ﺮﯾﺩﺎﻘﻣ ﻑﺍﺮﻃﺍ ﺭﺩ ﻪﻧ ،ﺪﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ ﻪﺘﺷﺭ ﺮﯾﺩﺎﻘﻣ ﻑﺍﺮﻃﺍ ﺭﺩ ﺎﻫ ﻝﻮﻗ ﻞﻘﻧ ﺯﺍ .ﺪﯿﻨﮑﻧ ﻪﻓﺎﺿﺍ ﺎﻣﺎﮐ ﺭﺍﺪﻘﻣ-ﯽﮔﮋﯾﻭ ﺖﻔﺟ ﻦﯾﺮﺧﺁ ﺯﺍ ﺪﻌﺑ ﺪﯿﻫﺩ ﺭﺍﺮﻗ ﻥﻭﺪﺑ ،ﺪﯾﺪﺟ ﻂﺧ ﮏﯾ ﯼﻭﺭ ﺍﺭ ﻪﺘﺴﺑ ﺖﮐﺍﺮﺑ .ﺪﯿﻫﺩ ﻪﻤﺗﺎﺧ ﻝﻮﮔﺮﯾﻭ ﻪﻄﻘﻧ ﺎﺑ ﺍﺭ ﯽﺷ ﮏﯾ ﻒﯾﺮﻌﺗ ﻪﺸﯿﻤﻫ ﺖﺷﻮﻧ ﻪﻠﺻﺎﻓ ﺯﺍ ﻩﺩﺎﻔﺘﺳﺍ ﺎﺑ ﻂﻘﻓ ،ﻂﺧ ﮏﯾ ﺭﺩ ،ﻩﺩﺮﺸﻓ ﺕﺭﻮﺻ ﻪﺑ ﻥﺍﻮﺗ ﯽﻣ ﺍﺭ ﻩﺎﺗﻮﮐ ءﺎﯿﺷﺍ ﺪﯿﻨﮐ ﺏﺎﻨﺘﺟﺍ 80 ﺯﺍ ﺮﺘﺸﯿﺑ ﻁﻮﻄﺧ ﺯﺍ ،ﯽﯾﺎﻧﺍﻮﺧ ﯼﺍﺮﺑ ﺖﺳﺍ ﻦﺘﺴﮑﺷ ﯼﺍﺮﺑ ﻥﺎﮑﻣ ﻦﯾﺮﺘﻬﺑ ،ﺩﺮﯿﮕﻧ ﺭﺍﺮﻗ ﻂﺧ ﮏﯾ ﺭﺩ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﺭﻮﺘﺳﺩ ﺮﮔﺍ → ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ :ﻼﺜﻣ .ﺪﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ ﺩﻮﺧ ﯼﺎﻫﺪﮐ ﻪﻤﻫ ﯼﺍﺮﺑ ﯼﺭﺍﺬﮕﻣﺎﻧ ﺩﺍﺩﺭﺍﺮﻗ ﮏﯾ ﺯﺍ ﻪﺸﯿﻤﻫ ﺖﺳﺍ ﻩﺪﺷ ﻪﺘﺷﻮﻧ camelCase ﺕﺭﻮﺻ ﻪﺑ ﻊﺑﺍﻮﺗ ﻭ ﺎﻫﺮﯿﻐﺘﻣ ﻡﺎﻧ ﺖﺳﺍ ﺭﻮﻄﻨﯾﺍ ﺎﻣﺍ ،ﺖﺴﯿﻧ ﺭﻮﻄﻨﯾﺍ ﺎﻣ) ﮒﺭﺰﺑ ﻑﻭﺮﺣ ﺎﺑ ﻩﺪﺷ ﻪﺘﺷﻮﻧ ﯼﺮﺳﺍﺮﺳ ﯼﺎﻫﺮﯿ ﺪﻧﺍ ﻩﺪﺷ ﻪﺘﺷﻮﻧ ﮒﺭﺰﺑ ﻑﻭﺮﺣ ﺎﺑ ﻪﮐ (PI ﺪﻨﻧﺎﻣ) ﺎﻫ ﺖﺑﺎﺛ ﺎﯾ hyp-hens، camelCase ﺯﺍ ﺪﯾﺎﺑ ﺎﯾﺁ ﺪﯿﺘﺴﻫ ﯽﺴﮐ ﻪﭼ ﺎﻤﺷ ﻪﮐ ﺩﺭﺍﺩ ﻦﯾﺍ ﻪﺑ ﯽﮕﺘﺴﺑ ﺦﺳﺎﭘ .ﺪﻨﻨﮐ ﯽﻣ ﺚﺤﺑ ﻥﺁ ﻩﺭﺎﺑﺭﺩ ﺐﻠﻏﺍ ﻥﺎﺴﯾﻮﻧ ﻪﻣﺎﻧﺮﺑ ﺭﺩ ﻦﻔﯿﻫ HTML ﻭ CSS: .ﺪﻧﻮﺷ ﻉﻭﺮﺷ (ﻩﺩﺍﺩ ﺖﻤﯿﻗ ،ﻩﺩﺍﺩ ﺖﯿﻤﮐ) ﻩﺩﺍﺩ ﺎﺑ ﺪﻨﻧﺍﻮﺗﯽﻣ HTML5 ﯼﺎﻫﯽﮔﮋﯾﻭ CSS ﺪﻨﮐ ﯽﻣ ﻩﺩﺎﻔﺘﺳﺍ (ﺖﻧﻮﻓ ﻩﺯﺍﺪﻧﺍ) ﺎﻫ ﯽﮔﮋﯾﻭ ﻡﺎﻧ ﺭﺩ ﻩﺮﯿﺗ ﻂﺧ ﺯﺍ. .ﺖﺴﯿﻧ ﺯﺎﺠﻣ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﻡﺎﻧ ﺭﺩ ﻩﺮﯿﺗ ﻂﺧ .ﺖﻓﺮﮔ ﻩﺎﺒﺘﺷﺍ ﻖﯾﺮﻔﺗ ﯼﺍﺮﺑ ﺵﻼﺗ ﻥﺍﻮﻨﻋ ﻪﺑ ﻥﺍﻮﺗ ﯽﻣ ﺍ ﻂﺧﺮﯾﺯ: ﺪﻨﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ SQL ﺭﺩ ﺹﻮﺼﺧ ﻪﺑ (ﺪﻟﻮﺗ_ﺦﯾﺭﺎﺗ) ﻂﺧﺮﯾﺯ ﺯﺍ ﺪﻨﻫﺩ ﯽﻣ ﺢﯿﺟﺮﺗ ﻥﺎﺴﯾﻮﻧ ﻪﻣﺎﻧﺮﺑ ﺯﺍ ﯼﺭﺎﯿ .ﺩﻮﺷ ﯽﻣ ﻩﺩﺎﻔﺘﺳﺍ PHP ﺕﺍﺪﻨﺘﺴﻣ ﺭﺩ ﺐﻠﻏﺍ ﻂﺧﺮﯾﺯ PascalCase: PascalCase ﻥﺎﺴﯾﻮﻧ ﻪﻣﺎﻧﺮﺑ ﻂﺳﻮﺗ ﺐﻠﻏﺍ C ﺩﻮﺷ ﯽﻣ ﻩﺩﺍﺩ ﺢﯿﺟﺮﺗ. camelCase: CamelCase ﺩﻮﺷ ﯽﻣ ﻩﺩﺎﻔﺘﺳﺍ ﺮﮕﯾﺩ ﯼﺎﻫ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﻭ ﯼﺮﺋﻮﮐ ﯽﺟ ،ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﺩﻮﺧ ﻂﺳﻮﺗ .ﺪﻫﺩ ﯽﻣ ﺭﺍﺮﻗ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﻪﻧﺎﺨﺑﺎﺘﮐ ﯼﺎﻫ ﻡﺎﻧ ﺯﺍ ﯼﺭﺎﯿﺴﺑ ﺎﺑ ﺩﺎﻀﺗ ﺭﺩ ﺍﺭ ﺎﻤﺷ ﻦﯾﺍ .ﺪﯿﻨﮑﻧ ﻉﻭﺮ ﺖﺴﯿﻧ type ﯽﮔﮋﯾﻭ) ﺪﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ ﯽﺟﺭﺎﺧ ﯼﺎﻫ ﺖﭙﯾﺮﮑﺳﺍ ﯼﺮﯿﮔﺭﺎﺑ ﯼﺍﺮﺑ ﻩﺩﺎﺳ ﻮﺤﻧ ﺯﺍ .ﺩﻮﺷ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﯼﺎﻫﺎﻄﺧ ﻪﺑ ﺮﺠﻨﻣ ﺖﺳﺍ ﻦﮑﻤﻣ "ﺐﺗﺮﻣﺎﻧ" HTML ﯼﺎﻫ ﮏﺒﺳ ﺯﺍ ﻩﺩﺎﻔﺘﺳﺍ ﻪﺠﯿﺘﻧ :ﺩﺮﮐ ﺪﻨﻫﺍﻮﺧ ﺪﯿﻟﻮﺗ ﺍﺭ ﯽﺗﻭﺎﻔﺘﻣ ﺞﯾﺎﺘﻧ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﺕﺭﺎﺒﻋ ﻭﺩ ﻦﯾﺍ .ﺪﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ HTML ﺭﺩ (ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﺪﻨﻧﺎﻣ) ﯼﺭﺍﺬﮕﻣﺎﻧ ﺩﺍﺩﺭﺍﺮﻗ ﻥﺎﻤﻫ ﺯﺍ ،ﻥﺎﮑﻣﺍ ﺕﺭﻮﺻ ﺭﺩ .ﺪﯿﻨﮐ ﻥﺪﯾﺩ HTML ﮏﺒﺳ ﯼﺎﻤﻨﻫﺍﺭ ﺯﺍ .(ﺖﺳﺍ ﺯﺎﺠﻣ .htm) ﺪﻨﺷﺎﺑ .html ﺪﻧﻮﺴﭘ ﯼﺍﺭﺍﺩ ﺪﯾﺎﺑ HTML .ﺪﻨﺷﺎﺑ .js ﺪﻧﻮﺴﭘ ﯼﺍﺭﺍﺩ ﺪﯾﺎﺑ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﯼﺎﻫ ﻞﯾﺎﻓ :ﺪﻨﺘﺴﻫ ﺱﺎﺴﺣ ﮒﺭﺰﺑ ﻭ ﮏﭼﻮﮐ ﻑﻭﺮﺣ ﻪﺑ ﺎﻫ ﻞﯾﺎﻓ ﻡﺎﻧ ﺩﺭﻮﻣ ﺭﺩ (Apache، Unix) ﺎﻫﺭﻭﺮﺳ ﺏﻭ ﺮﺜﮐﺍ london.jpg ﻥﺍﻮﻨﻋ ﻪﺑ London.jpg ﺖﺴﯿﻧ ﯽﺳﺮﺘﺳﺩ ﻞﺑﺎﻗ. :ﺪﻨﺘﺴﯿﻧ ﺱﺎﺴﺣ ﮒﺭﺰﺑ ﻭ ﮏﭼﻮﮐ ﻑﻭﺮﺣ ﻪﺑ (IIS ،ﺖﻓﺎﺳﻭﺮﮑﯾﺎﻣ) ﺎﻫﺭﻭﺮﺳ ﺏﻭ ﺮﯾﺎﺳ london.jpg ﻥﺍﻮﻨﻋ ﻪﺑ ﻥﺍﻮﺗ ﯽﻣ ﺍﺭ London.jpg ﺎﯾ london.jpg ﺩﺮﮐ ﻩﺪﻫﺎﺸﻣ. ﺪﯿﺷﺎﺑ ﻩﺩﺎﻌﻟﺍ ﻕﻮﻓ ﺪﯾﺎﺑ ،ﺪﯿﻨﮐ ﯽﻣ ﻩﺩﺎﻔﺘﺳﺍ ﮏﭼﻮﮐ ﻭ ﮒﺭﺰﺑ ﻑﻭﺮﺣ ﺯﺍ ﯽﺒﯿﮐﺮﺗ ﺯﺍ ﺮﮔﺍ ﺪﯾﻭﺮﺑ ﮏﭼﻮﮐ ﻭ ﮒﺭﺰﺑ ﻑﻭﺮﺣ ﻪﺑ ﺱﺎﺴﺣ ﺭﻭﺮﺳ ﮏﯾ ﻪﺑ ،ﮏﭼﻮﮐ ﯽﺘﺣ ،ﮏﭼﻮﮐ ﻭ ﮒﺭﺰﺑ ﻑﻭﺮﺣ ﻪﺑ ﺱﺎﺴﺣ ﺭﻭﺮﺳ ﮏﯾ .ﺪﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ (ﻥﺎﮑﻣﺍ ﺕﺭﻮﺻ ﺭﺩ) ﮏﭼﻮﮐ ﯼﺎﻫ ﻞﯾﺎﻓ ﻡﺎﻧ ﺯﺍ ﻪﺸﯿﻤﻫ ،ﺕﻼﮑﺸﻣ ﻦﯾﺍ ﺯﺍ ﯼﺮﯿﮔﻮﻠﺟ ﯼﺍﺮﺑ ﺪﻧﺭﺍﺩ ﻦﯿﻧﺍﻮﻗ ﺮﺜﮐﺍ .ﺩﻮﺷ ﯽﻤﻧ ﻩﺩﺎﻔﺘﺳﺍ ﺎﻫ ﻪﻧﺎﯾﺍﺭ ﻂﺳﻮﺗ ﯼﺭﺍﺬﮔﺪﮐ ﯼﺎﻫﺩﺍﺩﺭﺍﺮﻗ .ﺪﻨﺘﺴﯿﻧ ﻪﺟﻮﺗ ﻞﺑﺎﻗ ﮏﭼﻮﮐ ﯼﺎﻫ ﺖﭙﯾﺮﮑﺳﺍ ﺭﺩ ﯽﻓﺎﺿﺍ ﯼﺎﻫﺎﻀﻓ ﻭ ﯽﮕﺘﻓﺭﻮﺗ ﺮﺘﮔﺭﺰﺑ ﺪﯿﻟﻮﺗ .ﺩﻮﺷ ﻩﺩﺍﺩ ﺢﯿﺟﺮﺗ ﺪﯾﺎﺑ ﯽﯾﺎﻧﺍﻮﺧ ،ﻪﻌﺳﻮﺗ ﻝﺎﺣ ﺭﺩ ﺪﮐ ﯼﺍﺮﺑfirstName = "John";
lastName = "Doe";
price = 19.90;
tax = 0.20;
fullPrice = price + (price * tax);
ﺎﻫﺭﻮﺗﺍﺮﭘﺍ ﻑﺍﺮﻃﺍ ﯼﺎﻫﺎﻀﻓ
:ﺎﻫ ﻝﺎﺜﻣ
let x = y + z;
const myArray = ["Volvo", "Saab",
"Fiat"];
ﺪﮐ ﯽﮕﺘﻓﺭﻮﺗ
:ﺩﺮﮐﺭﺎﮐ
function toCelsius(fahrenheit) {
return (5 / 9) * (fahrenheit - 32);
}
ﻪﯿﻧﺎﯿﺑ ﻦﯿﻧﺍﻮﻗ
:ﺎﻫ ﻝﺎﺜﻣ
const cars = ["Volvo", "Saab",
"Fiat"];
const person = {
firstName: "John",
lastName: "Doe",
age: 50,
eyeColor:
"blue"
};
:ﺩﺮﮐﺭﺎﮐ
function toCelsius(fahrenheit) {
return (5 / 9) * (fahrenheit - 32);
}
:ﺎﻫ ﻪﻘﻠﺣ
for (let i = 0; i < 5; i++) {
x += i;
}
:ﻂﯾﺍﺮﺷ
if (time < 20) {
greeting = "Good day";
} else {
greeting = "Good evening";
}
ﯽﺷ ﻦﯿﻧﺍﻮﻗ
ﻝﺎﺜﻣ
80> ﻂﺧ ﻝﻮﻃ
ﻝﺎﺜﻣ
document.getElementById("demo").innerHTML =
"Hello Dolly.";
<!DOCTYPE html>
<html>
<body>
<h2>My Web Page</h2>
<p>The best place to break a code line is after an operator or a comma.</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"Hello Dolly.";
</script>
</body>
</html>
ﯼﺭﺍﺬﮕﻣﺎﻧ ﯼﺎﻫﺩﺍﺩﺭﺍﺮﻗ
HTML ﺭﺩ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﯼﺮﯿﮔﺭﺎﺑ
<script src="myscript.js"></script>
HTML ﺮﺻﺎﻨﻋ ﻪﺑ ﯽﺳﺮﺘﺳﺩ
const obj = getElementById("Demo")
const obj = getElementById("demo")
ﻞﯾﺎﻓ ﺪﻧﻮﺴﭘ
ﺪﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ ﮏﭼﻮﮐ ﻑﻭﺮﺣ ﺎﺑ ﻞﯾﺎﻓ ﯼﺎﻫ ﻡﺎﻧ ﺯﺍ
ﯽﯾﺍﺭﺎﮐ