diff --git a/1-syntax-basic-constructs/basic-js.html b/1-syntax-basic-constructs/basic-js.html new file mode 100644 index 0000000..a6518b5 --- /dev/null +++ b/1-syntax-basic-constructs/basic-js.html @@ -0,0 +1,15 @@ + + + + + + + Document + + + + + + + + \ No newline at end of file diff --git a/1-syntax-basic-constructs/basic.js b/1-syntax-basic-constructs/basic.js new file mode 100644 index 0000000..62697bf --- /dev/null +++ b/1-syntax-basic-constructs/basic.js @@ -0,0 +1,9 @@ +const edad = prompt ('Ingrese su edad:') +function mayorEdad(edad){ + if (edad > 18 ){ + alert('mayor edad') +} else { + alert('Es menor de edad') +} +} +mayorEdad(edad)