Skip to content

Instantly share code, notes, and snippets.

View JuliaGabellone's full-sized avatar

JuliaGabellone

View GitHub Profile
.append($("<div>")
.attr("class", "people-panel-item-table-row-cell")
.append($("<div>")
.attr("class", "people-panel-degree")
.append($("<div>")
.attr("class","info-header-name")
.attr("id", "info-header-name-" + item.index)
.html(item.contact.displayName()))
if(!MOE.IN.API.UseTLC){
.append($("<div>")
.append($("<div>")
.attr("class", "people-panel-item-table-row-cell")
.append($("<div>") .append($("<div>")
.attr("class","info-header-name")
.attr("id", "info-header-name-" + item.index)
.html(item.contact.displayName()))
.append($("<div>")
.attr("class","in-network-degree")
.attr("id", "in-conn-distance-badge")))
append($("<div>")
.attr("class", "people-panel-item-table-row-cell")
.append($("<div>")
.attr("class","info-header-name")
.attr("id", "info-header-name-" + item.index)
.html(item.contact.displayName()))
// E1
((2 == 3) && ("asdf" > "ASDF") && ( 4/2 == 2)) || (false && true)
(false && true && true ) || false)
false || false
false
// E2
(Math.max(2,3) == 3) && (1+2+3+4+5+6+7+8+9+10 == 55)
true && true
true
function comparar (numero , string){
if (typeof(string)!= 'string' || typeof(numero)!='number'){
return false
}
if (isNaN(string)){
return false
}
if (numero == string){
console.log("Iguales")
return true
function valor ( modelo , año , valor){
if (modelo != "fiesta" && modelo != "falcon"){
console.log("La empresa no trabaja con ese modelo")
return false
}
if (typeof(modelo)!='string' || typeof(año)!='number' || typeof(valor)!='number'){
return false
}
if (año < 1970){
resultado = ( valor - (50*valor/100))
function valor (valor , modelo , año){
if(typeof(modelo)!='string'){
return false
}
if (año > 1990){
resultado = (valor -(10*valor/100))
}
console.log("el valor de su auto" + " " + modelo + " " + año + " " + "es de" + " " + resultado)
return true
}
function valor (valor , modelo , año){
// solo modelos fiesta y falcon sino "La empresa no trabaja con ese modelo"
if (modelo != "fiesta" && modelo!="falcon"){
console.log("La empresa no trabaja con ese modelo")
return false
}
//menor de 1970 -50%
if ( año < 1970){
resultado = (valor - (50*(valor)/100))
function iguales (text , number){
if (typeof(text)!='string'){
console.error("Ingrese texto")
return false
}
if (typeof(number)!= 'number'){
console.error("Ingrese numero")
return false
}
if (text != number){
function juls (texto){
if (typeof(texto)!='string'){
return false;
}
else {
console.log("OK")
}
}
juls(3434)