Skip to content

Mi primer Code Review Yeraldin Casas #21

Open
YeraldinCasas wants to merge 13 commits intoLaboratoria:masterfrom
YeraldinCasas:master
Open

Mi primer Code Review Yeraldin Casas #21
YeraldinCasas wants to merge 13 commits intoLaboratoria:masterfrom
YeraldinCasas:master

Conversation

@YeraldinCasas
Copy link
Copy Markdown

Se trabajó HTML y CSS, apenasestoy intentando con JS y no tengo idea como empezar.

Copy link
Copy Markdown

@HectorBlisS HectorBlisS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tienes un gran progreso, aunque tu JavaScript aún está un poquito disperso, si aún no comprendes al 100% cómo escribir en JavaScript o no te sientes con suficiente confianza; intenta resolver algunas katas o retos de JavaScript que te ayuden a practicar. Hay muy buenos aquí:
https://www.hackerrank.com/

src/cipher.js Outdated
@@ -1,5 +1,18 @@
const cipher = {
// ...
const cipher = { cipher.encode
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creo que esto genera problemas

src/cipher.js Outdated
Comment on lines +7 to +16
function cipher(string) = {
let string= " "
for = (let i= 0; i < string.length; i++) {
let numberLetter = string.charCodeAt (i);
let cipherFormula;
let newLetter;
if (numberLetter >= 65 && numberLetter <= 90);
cipherFormula = ( numberLetter - 65 + 33) % 26 + 65;
theNewLetter = String.fromCharCode(cipherFormula);
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recuerda que el cipher es un objeto con 2 llaves .encode y .decode, esas son las funciones, mientras que cipher es el objeto:

let cipher = {
  encode(){},
  decode(){}
}

src/style.css Outdated
Comment on lines +10 to +21
h1, h2 {
font-family: 'Caveat', cursive;
background: darkblue;
text-align: center;
color: white
}

h1 {
font-size: 60px;
}

p {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intenta crear más clases en vez de seleccionar los elementos directamente, es mejor practica aunque es un poco más de trabajo, al final es el standard ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants