home.social

#learncode — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #learncode, aggregated by home.social.

  1. What if light-dark() in CSS wasn’t just for colors?

    Imagine swapping borders, fonts, or even layouts—automatically, by theme.

    I broke down how modern CSS (with @function, if(), and style queries) makes it possible.

    Theming just got way more powerful. ⚡

    dropletdrift.com/beyond-colors

    #css #darkmode #frontend #webdev #developer #html #coding #javascript #design #ui #ux #programming #learncode #100devs #devlife #frontenddev #webdesign #internet #software #opensource #webdesign

  2. #100DaysOfCode : #VanillaJS

    #Day28 : Array Exercices part III from #30DaysOfJavascript

    Source Code : github.com/teotimepacreau/Arra

    - array destructuring with... in order to use Math.min() and Math.max() (because they only works on numbers and not on an array)
    - reduce in order to calculate a sum of elements necessary to an average
    #WebDev #Frontend #WebDesign #LearnWebDev #Javascript #LearnToCode #CodingDay #FrontendDevelopment #CodingChallenge #LearnCode #WebDevelopment #LearnJavascript #JS

  3. #100DaysOfCode : #VanillaJS

    #Day25 : Functions Exercices from #30DaysOfJavascript

    Source Code : github.com/teotimepacreau/Func

    - reminded multiple parameters
    - concatenation of string, math operations
    - multiple if conditions
    switch/case statements in order to take several conditions
    - looping through an array and displaying each entries
    #WebDev #Frontend #WebDesign #LearnWebDev #Javascript #LearnToCode #CodingDay #FrontendDevelopment #CodingChallenge #LearnCode #WebDevelopment #LearnJavascript #JS

  4. #100DaysOfCode : #VanillaJS

    #Day24 : Loop Exercices from #30DaysOfJavascript

    Source Code : github.com/teotimepacreau/Loop

    - constraint number of iterations with for(i=0; i<=array.length; i++)
    reverse iteration with for(i=countries.length-1; i>=0 ; i--)
    - repeat() string method associated with for(i)
    - generate a random 6 characters ID

    #WebDev #Frontend #WebDesign #LearnWebDev #Javascript #LearnToCode #CodingDay #FrontendDevelopment #CodingChallenge #LearnCode #WebDevelopment #LearnJavascript #JS