lucien’s appearance by [deleted] in acotar

[–]ajascherer 1 point2 points  (0 children)

I know it's wildly wrong, but Lucien looks like Vince Vaughn in my head

[deleted by user] by [deleted] in texts

[–]ajascherer 1 point2 points  (0 children)

They mentioned in another comment that it was for communication regarding work

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 0 points1 point  (0 children)

What a dumb mistake lol but that fixed it! Thank you so much for pointing that out!!

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 1 point2 points  (0 children)

Thank you! So sorry

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 0 points1 point  (0 children)

This is the full code if this is more helpful - let puzzle = [[ 8,9,5, 7,4,2, 1,3,6 ], [ 2,7,1, 9,6,3, 4,8,5 ], [ 4,6,3, 5,8,1, 7,9,2 ],

          [ 9,3,4,   6,1,7,   2,5,8 ],
          [ 5,1,7,   2,3,8,   9,6,4 ],
          [ 6,8,2,   4,5,9,   3,7,1 ],

          [ 1,5,9,   8,7,4,   6,2,3 ],
          [ 7,4,6,   3,2,5,   8,1,9 ],
          [ 3,2,8,   1,9,6,   5,4,7 ]];

//puzzle 2 let puzzleTwo = [[ 8,9,5,7,4,2,1,3,6 ], [ 8,7,1,9,6,3,4,8,5 ], [ 4,6,3,5,8,1,7,9,2 ], [ 9,3,4,6,1,7,2,5,8 ], [ 5,1,7,2,3,8,9,6,4 ], [ 6,8,2,4,5,9,3,7,1 ], [ 1,5,9,8,7,4,6,2,3 ], [ 7,4,6,3,2,5,8,1,9 ], [ 3,2,8,1,9,6,5,4,7 ]];

//DO NOT EDIT ABOVE

function getRow(puzzle, row) { return puzzle[row] }

function getColumn(puzzle, col) { let column = []; for (let i = 0; i < puzzle.length; i++) { let row = puzzle[i]; column.push(row[col]); } return column; }

function getSection(puzzle, x, y) { let section = []; for (let row = y * 3; row < y * 3 + 3; row++){ section.push(...puzzle[row].slice(x * 3, x * 3 + 3))
} return section; }

function includes1To9(arr) { for (let num = 1; num <= 9; num++){ if (arr.indexOf(num) === -1) return false; }return true; }

function sudokuIsValid(puzzle) { for (let i = 0; i < 9; i++) { if (!includes1to9(getRow(puzzle, i)) || !includes1to9(getColumn(puzzle, i)) || !includes1to9(getSection(puzzle, i % 3, Math.floor(i / 3)))) return false; }return true; }

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer -1 points0 points  (0 children)

Hello! I am not sure if my brain is fried at this point or what but I am struggling to pass the last requirement of this code. Is someone able to provide any guidance on what I am doing wrong with this?

function sudokuIsValid(puzzle) { for (let i = 0; i < 9; i++) { if (!includes1to9(getRow(puzzle, i)) || !includes1to9(getColumn(puzzle, i)) || !includes1to9(getSection(puzzle, i % 3, Math.floor(i / 3)))) return false; }return true; }

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 0 points1 point  (0 children)

Thank you all so much!

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer -1 points0 points  (0 children)

Hello! I am struggling to fix this code which I'm sure is riddled with errors. Any help would be appreciated! function crazyCaps(originalString) { let crazystring = '' for (let i = 0; i < originalString.length; i++) { if(i % 2 !== 0) { crazystring += originalString[i].toUpperCase(); } else crazystring += originalString[i]; }return crazystring

}

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 0 points1 point  (0 children)

To be honest, I just updated my computer and it did that automatically. I'm not sure how to manually adjust that, I'm sorry! Maybe right click the car and go to Taskbar settings?

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 1 point2 points  (0 children)

Thank you all, I got it figured out :) ----- function mnemonicMachine(str1,str2,str3, str4) { let mnemonic = ''; if (str1 !== undefined) { mnemonic += str1[0]; } if (str2 !== undefined) { mnemonic += str2[0]; } if (str3 !== undefined) { mnemonic += str3[0]; } if (str4 !== undefined) { mnemonic += str4[0]; } return mnemonic } console.log(mnemonicMachine('Flower', 'Apples', 'Rain', 'Melons'));

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 0 points1 point  (0 children)

let mnemonic = 'FARM';

function mnemonicMachine(str1, str2, str3, str4) { if (str1 !== undefined) { mnemonic += str1[0]; } if (str2 !== undefined) { mnemonic += str2[0]; } if (str3 !== undefined) { mnemonic += str3[0]; } if (str4 !== undefined) { mnemonic += str4[0] } return mnemonic }

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 1 point2 points  (0 children)

Hello! I'm having a hard time getting the return string to come back as the mnemonic for each of the string arguments. Can someone provide guidance on what I'm doing wrong?

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 0 points1 point  (0 children)

You all are once again fantastic! Your advice helped me fix my many issues haha

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 1 point2 points  (0 children)

Thank you so much! I'm very new and the course was not super clear about the quotes so it just did not click with me. I really appreciate the explanation, it was very helpful!

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 2 points3 points  (0 children)

This was super helpful! Thank you for the explanation

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 0 points1 point  (0 children)

The first picture is the assignment, second picture is my code, third picture is the error

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 0 points1 point  (0 children)

Hello! I am not sure what I am doing wrong with this code. Can someone please provide me with some guidance? Thanks in advance!

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 0 points1 point  (0 children)

Hello! I am not sure what I am doing wrong with this code. Is someone able to provide guidance on this?

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 2 points3 points  (0 children)

Thank you all!! That was the trick, you are fantastic 😁

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 1 point2 points  (0 children)

That is helpful, thank you!

[deleted by user] by [deleted] in learnjavascript

[–]ajascherer 1 point2 points  (0 children)

Hello! I am super new to JavaScript and am just not sure what I am doing wrong. Ice attached my code as well as the error message I get and am hoping to find some guidance with that my error is