SlideShare una empresa de Scribd logo
1 de 3
Elementos
fundamentales de
JavaScript
O El lenguaje JavaScript utiliza una sintaxis
parecida a la de C y admite construcciones
estructuradas, como if...else, for y do...while. Se
utilizan llaves ({}) para delimitar los bloques de
instrucciones. El lenguaje admite varios tipos de
datos,
como String, Number, Boolean, Object y Array. A
dmite las características de fecha mejoradas,
las funciones trigonométricas y las expresiones
regulares.
Formato fechas
O var myDate = new Date("February 3, 2001");
var myDate = new Date("February 3 2001");
document.write((myDate.getMonth() + 1) + "-
" + myDate.getDate() + "-" +
myDate.getFullYear());
document.write("<br/>");
document.write((myDate.getMonth() + 1) +
"/" + myDate.getDate() + "/" +
myDate.getFullYear());

Más contenido relacionado

Destacado (8)

Faith Healing
Faith Healing  Faith Healing
Faith Healing
 
Om sri-satya-sai-candles
Om sri-satya-sai-candlesOm sri-satya-sai-candles
Om sri-satya-sai-candles
 
An effective use of ict
An effective use of ictAn effective use of ict
An effective use of ict
 
Wireless connecting world
Wireless connecting worldWireless connecting world
Wireless connecting world
 
Demystifying The Growth Of E - Commerce In India - An Analysis By CouponzGuru
Demystifying The Growth Of E - Commerce In India - An Analysis By CouponzGuruDemystifying The Growth Of E - Commerce In India - An Analysis By CouponzGuru
Demystifying The Growth Of E - Commerce In India - An Analysis By CouponzGuru
 
Understanding Shiftwork
Understanding ShiftworkUnderstanding Shiftwork
Understanding Shiftwork
 
SXSW
SXSWSXSW
SXSW
 
SXSW
SXSWSXSW
SXSW
 

Último

TECNOLOGIA DE LA INFORMACION Y MULTIMEDIA 15 MAYO.pptx
TECNOLOGIA DE LA INFORMACION Y MULTIMEDIA 15 MAYO.pptxTECNOLOGIA DE LA INFORMACION Y MULTIMEDIA 15 MAYO.pptx
TECNOLOGIA DE LA INFORMACION Y MULTIMEDIA 15 MAYO.pptx
UPSE
 
S07_s1-Control Acceso-Amenazas de seguridad de capa 2.pdf
S07_s1-Control Acceso-Amenazas de seguridad de capa 2.pdfS07_s1-Control Acceso-Amenazas de seguridad de capa 2.pdf
S07_s1-Control Acceso-Amenazas de seguridad de capa 2.pdf
larryluna927
 
TECNOLOGÍA DE LA INFORMACIÓN SLIDESHARE INVESTIGACION.pdf
TECNOLOGÍA DE LA INFORMACIÓN SLIDESHARE INVESTIGACION.pdfTECNOLOGÍA DE LA INFORMACIÓN SLIDESHARE INVESTIGACION.pdf
TECNOLOGÍA DE LA INFORMACIÓN SLIDESHARE INVESTIGACION.pdf
UPSE
 

Último (7)

TECNOLOGIA DE LA INFORMACION Y MULTIMEDIA 15 MAYO.pptx
TECNOLOGIA DE LA INFORMACION Y MULTIMEDIA 15 MAYO.pptxTECNOLOGIA DE LA INFORMACION Y MULTIMEDIA 15 MAYO.pptx
TECNOLOGIA DE LA INFORMACION Y MULTIMEDIA 15 MAYO.pptx
 
S07_s1-Control Acceso-Amenazas de seguridad de capa 2.pdf
S07_s1-Control Acceso-Amenazas de seguridad de capa 2.pdfS07_s1-Control Acceso-Amenazas de seguridad de capa 2.pdf
S07_s1-Control Acceso-Amenazas de seguridad de capa 2.pdf
 
El necesario mal del Legacy Code (Drupal Iberia 2024)
El necesario mal del Legacy Code (Drupal Iberia 2024)El necesario mal del Legacy Code (Drupal Iberia 2024)
El necesario mal del Legacy Code (Drupal Iberia 2024)
 
Modelado de Casos de uso del negocio
Modelado de  Casos  de  uso  del negocioModelado de  Casos  de  uso  del negocio
Modelado de Casos de uso del negocio
 
contabilidad para la inflacion, contabilidad superior
contabilidad para la inflacion, contabilidad superiorcontabilidad para la inflacion, contabilidad superior
contabilidad para la inflacion, contabilidad superior
 
Especificación casos de uso del negocio
Especificación  casos de uso del negocioEspecificación  casos de uso del negocio
Especificación casos de uso del negocio
 
TECNOLOGÍA DE LA INFORMACIÓN SLIDESHARE INVESTIGACION.pdf
TECNOLOGÍA DE LA INFORMACIÓN SLIDESHARE INVESTIGACION.pdfTECNOLOGÍA DE LA INFORMACIÓN SLIDESHARE INVESTIGACION.pdf
TECNOLOGÍA DE LA INFORMACIÓN SLIDESHARE INVESTIGACION.pdf
 

Elementos javascript

  • 2. O El lenguaje JavaScript utiliza una sintaxis parecida a la de C y admite construcciones estructuradas, como if...else, for y do...while. Se utilizan llaves ({}) para delimitar los bloques de instrucciones. El lenguaje admite varios tipos de datos, como String, Number, Boolean, Object y Array. A dmite las características de fecha mejoradas, las funciones trigonométricas y las expresiones regulares.
  • 3. Formato fechas O var myDate = new Date("February 3, 2001"); var myDate = new Date("February 3 2001"); document.write((myDate.getMonth() + 1) + "- " + myDate.getDate() + "-" + myDate.getFullYear()); document.write("<br/>"); document.write((myDate.getMonth() + 1) + "/" + myDate.getDate() + "/" + myDate.getFullYear());