kooliris
KPCKevin Powell - Community
•Created by kooliris on 3/12/2024 in #front-end
Force CSS Grid to follow the order of li elements of a ul in the HTML code.
I have this code:
By default CSS grid is splitting the list in two columns with Calypso on one column and Casio on another. What I want instead is to respect the order and start the second column with Majorica 1890.
5 replies
KPCKevin Powell - Community
•Created by kooliris on 2/15/2023 in #front-end
Calculate the sum of elements in a matrix diagonally
I'm creating a function sum_diagonal(arr) to calculate the sum of elements in a matrix diagonally but when it reaches the center, the element is repeating.
for example:
2 6 4
1 3 5
6 2 2
Execution: 2+4+3+3+6+2
how do I get number 3 to appear only once?
4 replies
KPCKevin Powell - Community
•Created by kooliris on 2/12/2023 in #front-end
Problem with For Loop
Can someone help me figure out the difference between the function afficher() using for...in vs the for loop? Using for..in the output is correct but with for it's not. am I missing something?
5 replies