SlideShare una empresa de Scribd logo
1 de 3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<script type="text/javascript">

var x=100;

function ejemplo()



{

var y=2;

document.write (X);

}



</script>

</head>



<body>

<script type="text/javascript">



document.write (x +"<br />");

ejemplo();

</script>



</body>

</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Documento sin t&iacute;tulo</title>

</head>



<body>

<script type="text/javascript">

var x , y , z;

var suma, resta, multi, division, residuo, varios;

x = 80; y = 60;z = 15;



</body>

</html>

suma= x + y;

sumaneg=-suma

resta= x - y;

multi= x * y;

division= x / y,

residuo= x % y;

varios = (x + z) * y;



document.write ("X vale: " + x + "<br />");

document.write ("Y vale: " + Y + "<br />");

document.write ("Z vale: " + Z + "<br />");
document.write ("La suma es " + suma + "<br />");

document.write ("La resta es " + resta + "<br />");

document.write ("La multuiplicacion es " + multi+ "<br />");

document.write ("La residuo es " + residuo + "<br />");

document.write ("La resultado es " + varios + "<br />");

</script>

Más contenido relacionado

Destacado

O valor que...Fábio,6ºE
O valor que...Fábio,6ºEO valor que...Fábio,6ºE
O valor que...Fábio,6ºEguesteacd5dc
 
Tor Bridges Relay Arabic Tutorial
Tor Bridges Relay Arabic TutorialTor Bridges Relay Arabic Tutorial
Tor Bridges Relay Arabic TutorialJesse Brand
 
Exercícios de exponenciais e logaritmos
Exercícios de exponenciais e logaritmosExercícios de exponenciais e logaritmos
Exercícios de exponenciais e logaritmoseuclidesgarcia
 
Granota verí de fletxa
Granota verí de fletxaGranota verí de fletxa
Granota verí de fletxamarta12002
 
Záró rendezvény
Záró rendezvényZáró rendezvény
Záró rendezvényBaranyigabi
 
IBM Lotus Notes Domino XPages and XPages for Mobile
IBM Lotus Notes Domino XPages and XPages for MobileIBM Lotus Notes Domino XPages and XPages for Mobile
IBM Lotus Notes Domino XPages and XPages for MobileChris Toohey
 
Sektörden Haberler Emarsys Ekim 2014
Sektörden Haberler Emarsys Ekim 2014Sektörden Haberler Emarsys Ekim 2014
Sektörden Haberler Emarsys Ekim 2014Emarsys
 
Petrolun damitilmasi
Petrolun damitilmasiPetrolun damitilmasi
Petrolun damitilmasiFaruk Eyigün
 
Sektörden Haberler Emarsys Ekim 2014
Sektörden Haberler Emarsys Ekim 2014Sektörden Haberler Emarsys Ekim 2014
Sektörden Haberler Emarsys Ekim 2014Emarsys Türkçe
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled PresentationDean Kiley
 
Meraklı minik Kar yağıyor
Meraklı minik Kar yağıyorMeraklı minik Kar yağıyor
Meraklı minik Kar yağıyorTulay01
 
Deniz ve Kıyı Koruma Alanları ve Köyceğiz-Dalyan Özel Çevre Koruma Bölgesi
Deniz ve Kıyı Koruma Alanları ve Köyceğiz-Dalyan Özel Çevre Koruma Bölgesi Deniz ve Kıyı Koruma Alanları ve Köyceğiz-Dalyan Özel Çevre Koruma Bölgesi
Deniz ve Kıyı Koruma Alanları ve Köyceğiz-Dalyan Özel Çevre Koruma Bölgesi dkka_turkiye
 
Red cambridge satchel us company
Red cambridge satchel us companyRed cambridge satchel us company
Red cambridge satchel us companyberrysmith
 
Lead Generation on the Web
Lead Generation on the WebLead Generation on the Web
Lead Generation on the WebWebMedley
 
Yakici cihaz bakim_onarim2
Yakici cihaz bakim_onarim2Yakici cihaz bakim_onarim2
Yakici cihaz bakim_onarim2Omur Yilmaz
 
Ektopik Gebelik (Dış Gebelik) - www.jinekolojivegebelik.com
Ektopik Gebelik (Dış Gebelik) - www.jinekolojivegebelik.comEktopik Gebelik (Dış Gebelik) - www.jinekolojivegebelik.com
Ektopik Gebelik (Dış Gebelik) - www.jinekolojivegebelik.comjinekolojivegebelik.com
 

Destacado (20)

O valor que...Fábio,6ºE
O valor que...Fábio,6ºEO valor que...Fábio,6ºE
O valor que...Fábio,6ºE
 
Reportaje
ReportajeReportaje
Reportaje
 
Tor Bridges Relay Arabic Tutorial
Tor Bridges Relay Arabic TutorialTor Bridges Relay Arabic Tutorial
Tor Bridges Relay Arabic Tutorial
 
Exercícios de exponenciais e logaritmos
Exercícios de exponenciais e logaritmosExercícios de exponenciais e logaritmos
Exercícios de exponenciais e logaritmos
 
Granota verí de fletxa
Granota verí de fletxaGranota verí de fletxa
Granota verí de fletxa
 
Záró rendezvény
Záró rendezvényZáró rendezvény
Záró rendezvény
 
IBM Lotus Notes Domino XPages and XPages for Mobile
IBM Lotus Notes Domino XPages and XPages for MobileIBM Lotus Notes Domino XPages and XPages for Mobile
IBM Lotus Notes Domino XPages and XPages for Mobile
 
(Pré)apresentação
(Pré)apresentação(Pré)apresentação
(Pré)apresentação
 
Sektörden Haberler Emarsys Ekim 2014
Sektörden Haberler Emarsys Ekim 2014Sektörden Haberler Emarsys Ekim 2014
Sektörden Haberler Emarsys Ekim 2014
 
Petrolun damitilmasi
Petrolun damitilmasiPetrolun damitilmasi
Petrolun damitilmasi
 
Uydu Yorunge
Uydu YorungeUydu Yorunge
Uydu Yorunge
 
Sektörden Haberler Emarsys Ekim 2014
Sektörden Haberler Emarsys Ekim 2014Sektörden Haberler Emarsys Ekim 2014
Sektörden Haberler Emarsys Ekim 2014
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentation
 
Meraklı minik Kar yağıyor
Meraklı minik Kar yağıyorMeraklı minik Kar yağıyor
Meraklı minik Kar yağıyor
 
Basit Makinalar
Basit MakinalarBasit Makinalar
Basit Makinalar
 
Deniz ve Kıyı Koruma Alanları ve Köyceğiz-Dalyan Özel Çevre Koruma Bölgesi
Deniz ve Kıyı Koruma Alanları ve Köyceğiz-Dalyan Özel Çevre Koruma Bölgesi Deniz ve Kıyı Koruma Alanları ve Köyceğiz-Dalyan Özel Çevre Koruma Bölgesi
Deniz ve Kıyı Koruma Alanları ve Köyceğiz-Dalyan Özel Çevre Koruma Bölgesi
 
Red cambridge satchel us company
Red cambridge satchel us companyRed cambridge satchel us company
Red cambridge satchel us company
 
Lead Generation on the Web
Lead Generation on the WebLead Generation on the Web
Lead Generation on the Web
 
Yakici cihaz bakim_onarim2
Yakici cihaz bakim_onarim2Yakici cihaz bakim_onarim2
Yakici cihaz bakim_onarim2
 
Ektopik Gebelik (Dış Gebelik) - www.jinekolojivegebelik.com
Ektopik Gebelik (Dış Gebelik) - www.jinekolojivegebelik.comEktopik Gebelik (Dış Gebelik) - www.jinekolojivegebelik.com
Ektopik Gebelik (Dış Gebelik) - www.jinekolojivegebelik.com
 

Similar a JavaScript variables and operations

Portafolio.carlos serrano grupo 201512_20
Portafolio.carlos serrano grupo 201512_20Portafolio.carlos serrano grupo 201512_20
Portafolio.carlos serrano grupo 201512_20carloser12
 
0035text[1].Txt.Xhtml
0035text[1].Txt.Xhtml0035text[1].Txt.Xhtml
0035text[1].Txt.XhtmlHOME
 
0016text[1].Txt.Xhtml
0016text[1].Txt.Xhtml0016text[1].Txt.Xhtml
0016text[1].Txt.XhtmlHOME
 
Los Estados De La Materia
Los Estados De La MateriaLos Estados De La Materia
Los Estados De La MateriaMayritalinda
 
El Tiempo Nos Ensea 214392
El Tiempo Nos Ensea 214392El Tiempo Nos Ensea 214392
El Tiempo Nos Ensea 214392guestc65f09
 
Base HTML & CSS
Base HTML & CSSBase HTML & CSS
Base HTML & CSSNick Chan
 
Sustainable livelihood-framework-sr-presentation
Sustainable livelihood-framework-sr-presentationSustainable livelihood-framework-sr-presentation
Sustainable livelihood-framework-sr-presentationguest6899d4f
 
0017text[1].Txt.Xhtml
0017text[1].Txt.Xhtml0017text[1].Txt.Xhtml
0017text[1].Txt.XhtmlHOME
 
Web Scripting Project JavaScripts and HTML WebPage
Web Scripting Project JavaScripts and HTML WebPageWeb Scripting Project JavaScripts and HTML WebPage
Web Scripting Project JavaScripts and HTML WebPageSunny U Okoro
 

Similar a JavaScript variables and operations (20)

Portafolio.carlos serrano grupo 201512_20
Portafolio.carlos serrano grupo 201512_20Portafolio.carlos serrano grupo 201512_20
Portafolio.carlos serrano grupo 201512_20
 
Intro to JavaScript
Intro to JavaScriptIntro to JavaScript
Intro to JavaScript
 
Index
IndexIndex
Index
 
0035text[1].Txt.Xhtml
0035text[1].Txt.Xhtml0035text[1].Txt.Xhtml
0035text[1].Txt.Xhtml
 
0016text[1].Txt.Xhtml
0016text[1].Txt.Xhtml0016text[1].Txt.Xhtml
0016text[1].Txt.Xhtml
 
Frfrfrf
FrfrfrfFrfrfrf
Frfrfrf
 
Los Estados De La Materia
Los Estados De La MateriaLos Estados De La Materia
Los Estados De La Materia
 
El Tiempo Nos Ensea 214392
El Tiempo Nos Ensea 214392El Tiempo Nos Ensea 214392
El Tiempo Nos Ensea 214392
 
Base HTML & CSS
Base HTML & CSSBase HTML & CSS
Base HTML & CSS
 
Intro to JavaScript
Intro to JavaScriptIntro to JavaScript
Intro to JavaScript
 
Eclampsia 4-real-presentation
Eclampsia 4-real-presentationEclampsia 4-real-presentation
Eclampsia 4-real-presentation
 
Sustainable livelihood-framework-sr-presentation
Sustainable livelihood-framework-sr-presentationSustainable livelihood-framework-sr-presentation
Sustainable livelihood-framework-sr-presentation
 
0017text[1].Txt.Xhtml
0017text[1].Txt.Xhtml0017text[1].Txt.Xhtml
0017text[1].Txt.Xhtml
 
Html.php
Html.phpHtml.php
Html.php
 
Web Scripting Project JavaScripts and HTML WebPage
Web Scripting Project JavaScripts and HTML WebPageWeb Scripting Project JavaScripts and HTML WebPage
Web Scripting Project JavaScripts and HTML WebPage
 
Chilliz
ChillizChilliz
Chilliz
 
Jquery image slider
Jquery image slider Jquery image slider
Jquery image slider
 
Dorothea orem-theory
Dorothea orem-theoryDorothea orem-theory
Dorothea orem-theory
 
aman's code
aman's codeaman's code
aman's code
 
Web basic
Web basicWeb basic
Web basic
 

JavaScript variables and operations

  • 1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript"> var x=100; function ejemplo() { var y=2; document.write (X); } </script> </head> <body> <script type="text/javascript"> document.write (x +"<br />"); ejemplo(); </script> </body> </html>
  • 2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Documento sin t&iacute;tulo</title> </head> <body> <script type="text/javascript"> var x , y , z; var suma, resta, multi, division, residuo, varios; x = 80; y = 60;z = 15; </body> </html> suma= x + y; sumaneg=-suma resta= x - y; multi= x * y; division= x / y, residuo= x % y; varios = (x + z) * y; document.write ("X vale: " + x + "<br />"); document.write ("Y vale: " + Y + "<br />"); document.write ("Z vale: " + Z + "<br />");
  • 3. document.write ("La suma es " + suma + "<br />"); document.write ("La resta es " + resta + "<br />"); document.write ("La multuiplicacion es " + multi+ "<br />"); document.write ("La residuo es " + residuo + "<br />"); document.write ("La resultado es " + varios + "<br />"); </script>