SlideShare a Scribd company logo
1 of 12
Presented By:
Assem Salem
Mahmoud Bahaa El-Din
Variables
var variable_name;
var variable_name = “value”;
variable_name=“value”;
Operators
+ - * / %
Adding Strings: Adding Values:
var moderator =“Bahaa”;
var Moderator= “Assem”;
var show_names= moderator + “ ” +
Moderator;
var x = 10;
var y = 1;
x++;
y--;
var z = x % y ;
document.write(z);
Comments
//any comment you want
/*
More than one line
*/
If..else
if (conditon){
Some code;
}else{
Some code
}
var x = 6;
var text;
if (x==5){
text = "x equals 5.";
}else{
text = "x does not equal 5.";
}
document.write(text);
LoopsWhile loop:
var i = 0 , x = 1 , sum= 0;
While(i<5){
x++;
sum+=x;
i++;
}
document.write(sum);
LoopsFor loop:
var x = 15;
var sum=0;
for (i=0;i<5;i++){
x++;
sum+=x;
}
document.write(sum);
Activity time
Let’s
CODE
Any Questions?
Thank you

More Related Content

More from SCCI-CU

SCCI'15 - Markative - Session 8 - marketing plan
SCCI'15 - Markative - Session 8 - marketing planSCCI'15 - Markative - Session 8 - marketing plan
SCCI'15 - Markative - Session 8 - marketing planSCCI-CU
 
SCCI'15 - Markative - session 7 - Advertising
SCCI'15 - Markative - session 7 - AdvertisingSCCI'15 - Markative - session 7 - Advertising
SCCI'15 - Markative - session 7 - AdvertisingSCCI-CU
 
SCCI'15-Soft-skills-session 6- Goal setting
SCCI'15-Soft-skills-session 6- Goal settingSCCI'15-Soft-skills-session 6- Goal setting
SCCI'15-Soft-skills-session 6- Goal settingSCCI-CU
 
SCCI'15-Soft-skills-session 8-How to be effective.
SCCI'15-Soft-skills-session 8-How to be effective.SCCI'15-Soft-skills-session 8-How to be effective.
SCCI'15-Soft-skills-session 8-How to be effective.SCCI-CU
 
SCCI'15 - Devology - Session 9 - a quick revision on designing and developing.
SCCI'15 - Devology - Session 9 - a quick revision on designing and developing. SCCI'15 - Devology - Session 9 - a quick revision on designing and developing.
SCCI'15 - Devology - Session 9 - a quick revision on designing and developing. SCCI-CU
 
SCCI'15 - Devology - Session 7 - UX&Steps to make a good website.
SCCI'15 - Devology - Session 7 - UX&Steps to make a good website.SCCI'15 - Devology - Session 7 - UX&Steps to make a good website.
SCCI'15 - Devology - Session 7 - UX&Steps to make a good website.SCCI-CU
 
SCCI'15 - Devology - Session 7 - Data and Databases
SCCI'15 - Devology - Session 7 - Data and DatabasesSCCI'15 - Devology - Session 7 - Data and Databases
SCCI'15 - Devology - Session 7 - Data and DatabasesSCCI-CU
 
SCCI'15 - Devology - Session 6 - Servers and PHP
SCCI'15 - Devology - Session 6 - Servers and PHPSCCI'15 - Devology - Session 6 - Servers and PHP
SCCI'15 - Devology - Session 6 - Servers and PHPSCCI-CU
 
SCCI'15 - Devology - Session 5 - How to make my own website?
SCCI'15 - Devology - Session 5 - How to make my own website?SCCI'15 - Devology - Session 5 - How to make my own website?
SCCI'15 - Devology - Session 5 - How to make my own website?SCCI-CU
 
SCCI'15 - Markative - session 5 - Inbound marketing
SCCI'15 - Markative - session 5 - Inbound marketingSCCI'15 - Markative - session 5 - Inbound marketing
SCCI'15 - Markative - session 5 - Inbound marketingSCCI-CU
 
SCCI'15 - Markative - session 4 - Direct marketing
SCCI'15 - Markative - session 4 - Direct marketingSCCI'15 - Markative - session 4 - Direct marketing
SCCI'15 - Markative - session 4 - Direct marketingSCCI-CU
 
SCCI'15 - Markative - Photography
SCCI'15 - Markative - PhotographySCCI'15 - Markative - Photography
SCCI'15 - Markative - PhotographySCCI-CU
 
SCCI'15 - Markative - Session5 - Designing concepts
SCCI'15 - Markative - Session5 - Designing conceptsSCCI'15 - Markative - Session5 - Designing concepts
SCCI'15 - Markative - Session5 - Designing conceptsSCCI-CU
 
SCCI'15 - SoftSkills - Session 4 presentation skills
SCCI'15 - SoftSkills - Session 4 presentation skillsSCCI'15 - SoftSkills - Session 4 presentation skills
SCCI'15 - SoftSkills - Session 4 presentation skillsSCCI-CU
 
SCCI'15 - soft-skills - Session 3- self-awareness
SCCI'15 - soft-skills - Session 3- self-awarenessSCCI'15 - soft-skills - Session 3- self-awareness
SCCI'15 - soft-skills - Session 3- self-awarenessSCCI-CU
 
SCCI'15 - markative - session 3 - Consumer behavior
SCCI'15 - markative - session 3 - Consumer behaviorSCCI'15 - markative - session 3 - Consumer behavior
SCCI'15 - markative - session 3 - Consumer behaviorSCCI-CU
 
SCCI'15 - Techsolve - Session 3 - Problem Solving
SCCI'15 - Techsolve - Session 3 - Problem SolvingSCCI'15 - Techsolve - Session 3 - Problem Solving
SCCI'15 - Techsolve - Session 3 - Problem SolvingSCCI-CU
 
SCCI'15 - Devology - Session 2 - UI&CSS
SCCI'15 - Devology - Session 2 - UI&CSSSCCI'15 - Devology - Session 2 - UI&CSS
SCCI'15 - Devology - Session 2 - UI&CSSSCCI-CU
 
SCCI'15 - Devology - Session 1 - Introduction The Internet & HTML
SCCI'15 - Devology - Session 1 - Introduction The Internet & HTMLSCCI'15 - Devology - Session 1 - Introduction The Internet & HTML
SCCI'15 - Devology - Session 1 - Introduction The Internet & HTMLSCCI-CU
 
SCCI'15 - Soft Skills - Session 1 - Interviewing Skills
SCCI'15 - Soft Skills - Session 1 - Interviewing SkillsSCCI'15 - Soft Skills - Session 1 - Interviewing Skills
SCCI'15 - Soft Skills - Session 1 - Interviewing SkillsSCCI-CU
 

More from SCCI-CU (20)

SCCI'15 - Markative - Session 8 - marketing plan
SCCI'15 - Markative - Session 8 - marketing planSCCI'15 - Markative - Session 8 - marketing plan
SCCI'15 - Markative - Session 8 - marketing plan
 
SCCI'15 - Markative - session 7 - Advertising
SCCI'15 - Markative - session 7 - AdvertisingSCCI'15 - Markative - session 7 - Advertising
SCCI'15 - Markative - session 7 - Advertising
 
SCCI'15-Soft-skills-session 6- Goal setting
SCCI'15-Soft-skills-session 6- Goal settingSCCI'15-Soft-skills-session 6- Goal setting
SCCI'15-Soft-skills-session 6- Goal setting
 
SCCI'15-Soft-skills-session 8-How to be effective.
SCCI'15-Soft-skills-session 8-How to be effective.SCCI'15-Soft-skills-session 8-How to be effective.
SCCI'15-Soft-skills-session 8-How to be effective.
 
SCCI'15 - Devology - Session 9 - a quick revision on designing and developing.
SCCI'15 - Devology - Session 9 - a quick revision on designing and developing. SCCI'15 - Devology - Session 9 - a quick revision on designing and developing.
SCCI'15 - Devology - Session 9 - a quick revision on designing and developing.
 
SCCI'15 - Devology - Session 7 - UX&Steps to make a good website.
SCCI'15 - Devology - Session 7 - UX&Steps to make a good website.SCCI'15 - Devology - Session 7 - UX&Steps to make a good website.
SCCI'15 - Devology - Session 7 - UX&Steps to make a good website.
 
SCCI'15 - Devology - Session 7 - Data and Databases
SCCI'15 - Devology - Session 7 - Data and DatabasesSCCI'15 - Devology - Session 7 - Data and Databases
SCCI'15 - Devology - Session 7 - Data and Databases
 
SCCI'15 - Devology - Session 6 - Servers and PHP
SCCI'15 - Devology - Session 6 - Servers and PHPSCCI'15 - Devology - Session 6 - Servers and PHP
SCCI'15 - Devology - Session 6 - Servers and PHP
 
SCCI'15 - Devology - Session 5 - How to make my own website?
SCCI'15 - Devology - Session 5 - How to make my own website?SCCI'15 - Devology - Session 5 - How to make my own website?
SCCI'15 - Devology - Session 5 - How to make my own website?
 
SCCI'15 - Markative - session 5 - Inbound marketing
SCCI'15 - Markative - session 5 - Inbound marketingSCCI'15 - Markative - session 5 - Inbound marketing
SCCI'15 - Markative - session 5 - Inbound marketing
 
SCCI'15 - Markative - session 4 - Direct marketing
SCCI'15 - Markative - session 4 - Direct marketingSCCI'15 - Markative - session 4 - Direct marketing
SCCI'15 - Markative - session 4 - Direct marketing
 
SCCI'15 - Markative - Photography
SCCI'15 - Markative - PhotographySCCI'15 - Markative - Photography
SCCI'15 - Markative - Photography
 
SCCI'15 - Markative - Session5 - Designing concepts
SCCI'15 - Markative - Session5 - Designing conceptsSCCI'15 - Markative - Session5 - Designing concepts
SCCI'15 - Markative - Session5 - Designing concepts
 
SCCI'15 - SoftSkills - Session 4 presentation skills
SCCI'15 - SoftSkills - Session 4 presentation skillsSCCI'15 - SoftSkills - Session 4 presentation skills
SCCI'15 - SoftSkills - Session 4 presentation skills
 
SCCI'15 - soft-skills - Session 3- self-awareness
SCCI'15 - soft-skills - Session 3- self-awarenessSCCI'15 - soft-skills - Session 3- self-awareness
SCCI'15 - soft-skills - Session 3- self-awareness
 
SCCI'15 - markative - session 3 - Consumer behavior
SCCI'15 - markative - session 3 - Consumer behaviorSCCI'15 - markative - session 3 - Consumer behavior
SCCI'15 - markative - session 3 - Consumer behavior
 
SCCI'15 - Techsolve - Session 3 - Problem Solving
SCCI'15 - Techsolve - Session 3 - Problem SolvingSCCI'15 - Techsolve - Session 3 - Problem Solving
SCCI'15 - Techsolve - Session 3 - Problem Solving
 
SCCI'15 - Devology - Session 2 - UI&CSS
SCCI'15 - Devology - Session 2 - UI&CSSSCCI'15 - Devology - Session 2 - UI&CSS
SCCI'15 - Devology - Session 2 - UI&CSS
 
SCCI'15 - Devology - Session 1 - Introduction The Internet & HTML
SCCI'15 - Devology - Session 1 - Introduction The Internet & HTMLSCCI'15 - Devology - Session 1 - Introduction The Internet & HTML
SCCI'15 - Devology - Session 1 - Introduction The Internet & HTML
 
SCCI'15 - Soft Skills - Session 1 - Interviewing Skills
SCCI'15 - Soft Skills - Session 1 - Interviewing SkillsSCCI'15 - Soft Skills - Session 1 - Interviewing Skills
SCCI'15 - Soft Skills - Session 1 - Interviewing Skills
 

Recently uploaded

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Recently uploaded (20)

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

SCCI'15 - Devology - Session 4 Javascript