Created
March 7, 2017 05:15
-
-
Save edinsoncs/4b7d8744ceb765500a6f6a32247bd100 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict" | |
document.write('To javascript pro'); | |
document.write('<br />'); | |
let n = 'edinson', | |
s = 'carranza'; | |
let body = document.querySelectorAll('body'); | |
let getNameFull = (name, surname) => { | |
//Get name primary first letter UPPERCASE | |
name = name.split('')[0].fontsize(15) + name.replace('e', ''); | |
/*var classH1 = document.createAttribute('class'); | |
classH1.value = 'isPrincipal'; | |
let encabezado = document.createElement('h1'); | |
encabezado.setAttributeNode(classH1); | |
encabezado.appendChild(body) | |
*/ | |
var xPrint = '-'; | |
var yPrint = '@'; | |
arr = [1,2,3,4,5,6,7,8,9,10,11,12,13,14, | |
15,16,17,18,19,20]; | |
let iPrint; | |
let aPrint; | |
arr.map((element, index, array) => { | |
if(index > 2){ | |
iPrint = (x) => { | |
document.write(x); | |
} | |
} else { | |
aPrint = (x) => { | |
document.write(x) | |
} | |
} | |
}); | |
iPrint('´´´´´´´´´´´´´´´´´´´´´´'); | |
aPrint('**********************'); | |
document.write('<br/>'); | |
document.write(name + ' ' + surname); | |
document.write('<br/>'); | |
iPrint('´´´´´´´´´´´´´´´´´´´´´´'); | |
aPrint('**********************'); | |
} | |
getNameFull(n, s); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment