SlideShare a Scribd company logo
Subject Name: WEB TECHNOLOGIES
(BCA 204)
Department: BCA
Created By: FARAZ KHAN
Enrollment No. :01025502019
Class:4TH SEMESTER
JIMS Engineering Management Technical Campus
48/4, Knowledge Park – III, Greater Noida - 201308
(Affiliated to Guru Gobind Singh Indraprastha University, New Delhi
Approved by AICTE
ISO 9001:2018 Quality Certified
Subject: WEB TECHNOLOGIES(210)
Topic: User- Defined and Built-in Functions
User- Defined and Built-in Functions
3
FUNCTIONS
▰ Function is a reusable code-block that will be
executed whenever it is called .
▰ Function is a great time saver.
▰ It is used for performing repetitive tasks where you
can call the same function multiple times.
▰ It allows code reusability
/
▰ A JavaScript function is a block of code designed to
perform a particular task and is executed when
invoked
▰ example
function myFunction(p1,p2){
return p1*p2; //this code returns the product
}
FUNCTION RETURN
▰ When a JavaScript reaches a return statement , the
function will stop executing.
▰ If the function was invoked from a statement ,
JavaScript will return to execute the code after the
invoking statement.
EXAMPLE
var x = myFunction(4 , 3); //function is called , return
value will end up in x
function myFunction(a , b){
return a*b; // function returns the product of a and b
}
Output = 12
TYPES
▰ Built-in functions
▰ User-defined functions
▰ Built-in functions
These functions are the global functions that are
called globally rather than on an object.
E.g - isNan() , parseFloat(string) , parseInt(string) ,
string , eval etc.
Built-in functions in JavaScript
continue
▰ User-defined functions
User-defined functions mean you can create a
function for your own use. You can create yourself
according to your need.
In JavaScript these functions are written in between
the <HEAD> tag of the HTML page.
.
▰ Syntax:
function function_name()
{ //Code; }
Example:
function add(){
var a,b; var sum=0;
Sum=a+b;
document.write(“addition:”+sum);}
CODE FOR USER-DEFINED
FUNCTIONS
REFERENCES
▰ https://www.tutorialride.com
▰ https://www.studytonight.com
Thank You !!

More Related Content

Similar to web technology presentation by faraz khan.pptx

Thesis presentation over Web Development
Thesis presentation over Web DevelopmentThesis presentation over Web Development
Thesis presentation over Web Development
Aman Khan
 
Object oriented programming using c++
Object oriented programming using c++Object oriented programming using c++
Object oriented programming using c++
Trinity Dwarka
 
InternshipReport-1.pdf
InternshipReport-1.pdfInternshipReport-1.pdf
InternshipReport-1.pdf
KaranKarad
 
SwatiNaikResumeAug2016
SwatiNaikResumeAug2016SwatiNaikResumeAug2016
SwatiNaikResumeAug2016
swati Naik
 
Online examination documentation
Online examination documentationOnline examination documentation
Online examination documentation
Wakimul Alam
 
RESUME
RESUMERESUME
GAN_PPT.pptx
GAN_PPT.pptxGAN_PPT.pptx
GAN_PPT.pptx
Chinu73
 
How to set focus on an input field after rendering in ReactJS in 2024_.pdf
How to set focus on an input field after rendering in ReactJS in 2024_.pdfHow to set focus on an input field after rendering in ReactJS in 2024_.pdf
How to set focus on an input field after rendering in ReactJS in 2024_.pdf
BOSC Tech Labs
 
Resume_Abhishek_3years
Resume_Abhishek_3yearsResume_Abhishek_3years
Resume_Abhishek_3years
Abhishek Aggarwal
 
Ashok cv_1
Ashok  cv_1Ashok  cv_1
Ashok cv_1
Ashok Srivastava
 
Muthuvignesh_PHP_developer_2015
Muthuvignesh_PHP_developer_2015Muthuvignesh_PHP_developer_2015
Muthuvignesh_PHP_developer_2015
dvvicky
 
Pankaj python programmer
Pankaj python programmerPankaj python programmer
Pankaj python programmer
pankaj992
 
Anoop Venugopal (1)
Anoop Venugopal (1)Anoop Venugopal (1)
Anoop Venugopal (1)
Anoop Venugopal
 
hem.pdf
hem.pdfhem.pdf
hem.pdf
GeethMayaa
 
Software Portfolio - SetFocus
Software Portfolio - SetFocusSoftware Portfolio - SetFocus
Software Portfolio - SetFocus
Alexander Vogel
 
Biodata_VishweshBehere
Biodata_VishweshBehereBiodata_VishweshBehere
Biodata_VishweshBehere
Vishwesh Behere
 
Factory Workflow Management PPT.pptx
Factory Workflow Management PPT.pptxFactory Workflow Management PPT.pptx
Factory Workflow Management PPT.pptx
Digital Master Shubham
 
Shubham_CV
Shubham_CVShubham_CV
Shubham_CV
shubham verma
 
Shubham cv
Shubham cvShubham cv
Shubham cv
shubham verma
 
Shubham_CV
Shubham_CVShubham_CV
Shubham_CV
shubham verma
 

Similar to web technology presentation by faraz khan.pptx (20)

Thesis presentation over Web Development
Thesis presentation over Web DevelopmentThesis presentation over Web Development
Thesis presentation over Web Development
 
Object oriented programming using c++
Object oriented programming using c++Object oriented programming using c++
Object oriented programming using c++
 
InternshipReport-1.pdf
InternshipReport-1.pdfInternshipReport-1.pdf
InternshipReport-1.pdf
 
SwatiNaikResumeAug2016
SwatiNaikResumeAug2016SwatiNaikResumeAug2016
SwatiNaikResumeAug2016
 
Online examination documentation
Online examination documentationOnline examination documentation
Online examination documentation
 
RESUME
RESUMERESUME
RESUME
 
GAN_PPT.pptx
GAN_PPT.pptxGAN_PPT.pptx
GAN_PPT.pptx
 
How to set focus on an input field after rendering in ReactJS in 2024_.pdf
How to set focus on an input field after rendering in ReactJS in 2024_.pdfHow to set focus on an input field after rendering in ReactJS in 2024_.pdf
How to set focus on an input field after rendering in ReactJS in 2024_.pdf
 
Resume_Abhishek_3years
Resume_Abhishek_3yearsResume_Abhishek_3years
Resume_Abhishek_3years
 
Ashok cv_1
Ashok  cv_1Ashok  cv_1
Ashok cv_1
 
Muthuvignesh_PHP_developer_2015
Muthuvignesh_PHP_developer_2015Muthuvignesh_PHP_developer_2015
Muthuvignesh_PHP_developer_2015
 
Pankaj python programmer
Pankaj python programmerPankaj python programmer
Pankaj python programmer
 
Anoop Venugopal (1)
Anoop Venugopal (1)Anoop Venugopal (1)
Anoop Venugopal (1)
 
hem.pdf
hem.pdfhem.pdf
hem.pdf
 
Software Portfolio - SetFocus
Software Portfolio - SetFocusSoftware Portfolio - SetFocus
Software Portfolio - SetFocus
 
Biodata_VishweshBehere
Biodata_VishweshBehereBiodata_VishweshBehere
Biodata_VishweshBehere
 
Factory Workflow Management PPT.pptx
Factory Workflow Management PPT.pptxFactory Workflow Management PPT.pptx
Factory Workflow Management PPT.pptx
 
Shubham_CV
Shubham_CVShubham_CV
Shubham_CV
 
Shubham cv
Shubham cvShubham cv
Shubham cv
 
Shubham_CV
Shubham_CVShubham_CV
Shubham_CV
 

Recently uploaded

体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】
体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】
体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】
waldorfnorma258
 
官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样
官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样
官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样
2zjra9bn
 
BUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAAN
BUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAANBUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAAN
BUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAAN
cahgading001
 
在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样
在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样
在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样
yhkox
 
Connect to Grow: The power of building networks
Connect to Grow: The power of building networksConnect to Grow: The power of building networks
Connect to Grow: The power of building networks
Eirini SYKA-LERIOTI
 
按照学校原版(ArtEZ文凭证书)ArtEZ艺术学院毕业证快速办理
按照学校原版(ArtEZ文凭证书)ArtEZ艺术学院毕业证快速办理按照学校原版(ArtEZ文凭证书)ArtEZ艺术学院毕业证快速办理
按照学校原版(ArtEZ文凭证书)ArtEZ艺术学院毕业证快速办理
evnum
 
A Guide to a Winning Interview June 2024
A Guide to a Winning Interview June 2024A Guide to a Winning Interview June 2024
A Guide to a Winning Interview June 2024
Bruce Bennett
 
按照学校原版(UofT文凭证书)多伦多大学毕业证快速办理
按照学校原版(UofT文凭证书)多伦多大学毕业证快速办理按照学校原版(UofT文凭证书)多伦多大学毕业证快速办理
按照学校原版(UofT文凭证书)多伦多大学毕业证快速办理
evnum
 
一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理
一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理
一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理
taqyea
 
How to overcome obstacles in the way of success.pdf
How to overcome obstacles in the way of success.pdfHow to overcome obstacles in the way of success.pdf
How to overcome obstacles in the way of success.pdf
Million-$-Knowledge {Million Dollar Knowledge}
 
Gabrielle M. A. Sinaga Portfolio, Film Student (2024)
Gabrielle M. A. Sinaga Portfolio, Film Student (2024)Gabrielle M. A. Sinaga Portfolio, Film Student (2024)
Gabrielle M. A. Sinaga Portfolio, Film Student (2024)
GabrielleSinaga
 
在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样
在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样
在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样
2zjra9bn
 
一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理
一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理
一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理
gnokue
 
0624.speakingengagementsandteaching-01.pdf
0624.speakingengagementsandteaching-01.pdf0624.speakingengagementsandteaching-01.pdf
0624.speakingengagementsandteaching-01.pdf
Thomas GIRARD BDes
 
Learnings from Successful Jobs Searchers
Learnings from Successful Jobs SearchersLearnings from Successful Jobs Searchers
Learnings from Successful Jobs Searchers
Bruce Bennett
 
一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理
一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理
一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理
1wful2fm
 
Community Skills Building Workshop | PMI Silver Spring Chapter | June 12, 2024
Community Skills Building Workshop | PMI Silver Spring Chapter  | June 12, 2024Community Skills Building Workshop | PMI Silver Spring Chapter  | June 12, 2024
Community Skills Building Workshop | PMI Silver Spring Chapter | June 12, 2024
Hector Del Castillo, CPM, CPMM
 
一比一原版(EUR毕业证)鹿特丹伊拉斯姆斯大学毕业证如何办理
一比一原版(EUR毕业证)鹿特丹伊拉斯姆斯大学毕业证如何办理一比一原版(EUR毕业证)鹿特丹伊拉斯姆斯大学毕业证如何办理
一比一原版(EUR毕业证)鹿特丹伊拉斯姆斯大学毕业证如何办理
nguqayx
 
Switching Careers Slides - JoyceMSullivan SocMediaFin - 2024Jun11.pdf
Switching Careers Slides - JoyceMSullivan SocMediaFin -  2024Jun11.pdfSwitching Careers Slides - JoyceMSullivan SocMediaFin -  2024Jun11.pdf
Switching Careers Slides - JoyceMSullivan SocMediaFin - 2024Jun11.pdf
SocMediaFin - Joyce Sullivan
 
办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样
办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样
办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样
kkkkr4pg
 

Recently uploaded (20)

体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】
体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】
体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】
 
官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样
官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样
官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样
 
BUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAAN
BUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAANBUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAAN
BUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAAN
 
在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样
在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样
在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样
 
Connect to Grow: The power of building networks
Connect to Grow: The power of building networksConnect to Grow: The power of building networks
Connect to Grow: The power of building networks
 
按照学校原版(ArtEZ文凭证书)ArtEZ艺术学院毕业证快速办理
按照学校原版(ArtEZ文凭证书)ArtEZ艺术学院毕业证快速办理按照学校原版(ArtEZ文凭证书)ArtEZ艺术学院毕业证快速办理
按照学校原版(ArtEZ文凭证书)ArtEZ艺术学院毕业证快速办理
 
A Guide to a Winning Interview June 2024
A Guide to a Winning Interview June 2024A Guide to a Winning Interview June 2024
A Guide to a Winning Interview June 2024
 
按照学校原版(UofT文凭证书)多伦多大学毕业证快速办理
按照学校原版(UofT文凭证书)多伦多大学毕业证快速办理按照学校原版(UofT文凭证书)多伦多大学毕业证快速办理
按照学校原版(UofT文凭证书)多伦多大学毕业证快速办理
 
一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理
一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理
一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理
 
How to overcome obstacles in the way of success.pdf
How to overcome obstacles in the way of success.pdfHow to overcome obstacles in the way of success.pdf
How to overcome obstacles in the way of success.pdf
 
Gabrielle M. A. Sinaga Portfolio, Film Student (2024)
Gabrielle M. A. Sinaga Portfolio, Film Student (2024)Gabrielle M. A. Sinaga Portfolio, Film Student (2024)
Gabrielle M. A. Sinaga Portfolio, Film Student (2024)
 
在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样
在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样
在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样
 
一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理
一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理
一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理
 
0624.speakingengagementsandteaching-01.pdf
0624.speakingengagementsandteaching-01.pdf0624.speakingengagementsandteaching-01.pdf
0624.speakingengagementsandteaching-01.pdf
 
Learnings from Successful Jobs Searchers
Learnings from Successful Jobs SearchersLearnings from Successful Jobs Searchers
Learnings from Successful Jobs Searchers
 
一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理
一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理
一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理
 
Community Skills Building Workshop | PMI Silver Spring Chapter | June 12, 2024
Community Skills Building Workshop | PMI Silver Spring Chapter  | June 12, 2024Community Skills Building Workshop | PMI Silver Spring Chapter  | June 12, 2024
Community Skills Building Workshop | PMI Silver Spring Chapter | June 12, 2024
 
一比一原版(EUR毕业证)鹿特丹伊拉斯姆斯大学毕业证如何办理
一比一原版(EUR毕业证)鹿特丹伊拉斯姆斯大学毕业证如何办理一比一原版(EUR毕业证)鹿特丹伊拉斯姆斯大学毕业证如何办理
一比一原版(EUR毕业证)鹿特丹伊拉斯姆斯大学毕业证如何办理
 
Switching Careers Slides - JoyceMSullivan SocMediaFin - 2024Jun11.pdf
Switching Careers Slides - JoyceMSullivan SocMediaFin -  2024Jun11.pdfSwitching Careers Slides - JoyceMSullivan SocMediaFin -  2024Jun11.pdf
Switching Careers Slides - JoyceMSullivan SocMediaFin - 2024Jun11.pdf
 
办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样
办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样
办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样
 

web technology presentation by faraz khan.pptx

  • 1. Subject Name: WEB TECHNOLOGIES (BCA 204) Department: BCA Created By: FARAZ KHAN Enrollment No. :01025502019 Class:4TH SEMESTER JIMS Engineering Management Technical Campus 48/4, Knowledge Park – III, Greater Noida - 201308 (Affiliated to Guru Gobind Singh Indraprastha University, New Delhi Approved by AICTE ISO 9001:2018 Quality Certified
  • 2. Subject: WEB TECHNOLOGIES(210) Topic: User- Defined and Built-in Functions
  • 3. User- Defined and Built-in Functions 3
  • 4. FUNCTIONS ▰ Function is a reusable code-block that will be executed whenever it is called . ▰ Function is a great time saver. ▰ It is used for performing repetitive tasks where you can call the same function multiple times. ▰ It allows code reusability
  • 5. / ▰ A JavaScript function is a block of code designed to perform a particular task and is executed when invoked ▰ example function myFunction(p1,p2){ return p1*p2; //this code returns the product }
  • 6. FUNCTION RETURN ▰ When a JavaScript reaches a return statement , the function will stop executing. ▰ If the function was invoked from a statement , JavaScript will return to execute the code after the invoking statement.
  • 7. EXAMPLE var x = myFunction(4 , 3); //function is called , return value will end up in x function myFunction(a , b){ return a*b; // function returns the product of a and b } Output = 12
  • 8. TYPES ▰ Built-in functions ▰ User-defined functions ▰ Built-in functions These functions are the global functions that are called globally rather than on an object. E.g - isNan() , parseFloat(string) , parseInt(string) , string , eval etc.
  • 10. continue ▰ User-defined functions User-defined functions mean you can create a function for your own use. You can create yourself according to your need. In JavaScript these functions are written in between the <HEAD> tag of the HTML page.
  • 11. . ▰ Syntax: function function_name() { //Code; } Example: function add(){ var a,b; var sum=0; Sum=a+b; document.write(“addition:”+sum);}
  • 13.