Jump to content

c0d0ps

Member
  • Posts

    1,640
  • Joined

  • Last visited

Awards

This user doesn't have any awards

About c0d0ps

  • Birthday Sep 04, 1997

Contact Methods

  • Steam
    http://steamcommunity.com/profiles/76561198042266239?l=english
  • Battle.net
    c0d0ps#2543

Profile Information

  • Gender
    Male
  • Location
    Gothenburg
  • Interests
    Almost anything.
    Robotics, computer science, computer programming, biography, medicine, Mixed Martial Arts
  • Biography
    Hello!
    I'm Simon and born 97, my hobbies are programming, building computers, training mma and playing fps shooters or zombies games
    I like all types of games though
  • Occupation
    Web designer (building websites)
  • Member title
    Silence, is the best reply to a fool.

System

  • CPU
    AMD Ryzen R9 5900x @ 5.1GHz - Auto OC
    Curve Optimizer Magnitude: -20
  • Motherboard
    ASUS ROG STRIX x570-F Gaming
  • RAM
    Kingston Fury 32GB DDR4 3200MHz 16x2GB
  • GPU
    MSI 3070 8GB Ventus 2x OC
  • Case
    LIAN LI LANCOOL MESH II Mesh RGB Black
  • Storage
    Kingston NV1 2TB M.2. NVMe
  • PSU
    Seasonic Focus GX 850w 
  • Display(s)
    MSI OPTIX MAG 251RX IPS 240hz & ASUS MG248Q Vertical 144hz & Dell 60hz
  • Cooling
    NZXT Kraken x73 360mm
  • Keyboard
    Tt eSports Meka G1
  • Mouse
    Logitech G Pro Wireless
  • Operating System
    Windows 10 Pro 64bit

Recent Profile Visitors

3,094 profile views
  1. The exercise was to use a switch statement not if else statements but yes I am more comfortable with if else statements from my high school days. I am still new to the whole switch thing. This exercise is part of the mozilla course of javascript called conditionals 3 I think you missed the part where I added break; but yes it was needed. The code wasn't read properly by the computer without it. I will try to remember that. I appreciate pedantics as much as anyone (even if I don't know much about programming) but I think you're exaggerating about the whole abusing. Coding in bliss is not abuse it is me taking the stairs and falling down and hurting my ankles. Not worse than that.
  2. Thank you that worked great, except for machineActive = false I get this error code, = true still works like it should though and I don't know why Summarizing: For this specific exercise it is better to define response because of the pre stated paragraph.
  3. Hi thanks for answer, as noted in my (second) previous comment even on machineActive=true it shows Your Score is 75 and not the console log for case score >= 70 && score < 89: console.log("That's a great score, you really know your stuff."); break; screenshot
  4. Thank you This is the code after fixing the no break problems and exchanging response to console.log(); Only problem is nothing shows up besides "Your score is 75."
  5. So this is what I came up with thanks to the stack overflow linked above. Unfortunately it says "machine is not on" even when change let machineActive = false; to true
  6. Conditionals 3 Conditionals 2 Update: TLDR the goal is to convert if else statements to a switch version of the statement (like noted in my under "JavaScript" headline). Not necessarily using an if else statement (which I tried to do) in a switch statement. I will work on better placing though thank you.
  7. Test your skills: Conditionals - Learn web development | MDN (mozilla.org) I am doing the mozilla online course - javascript exercise
  8. Hi I'm using a .html and .js file Languages: HTML, CSS, JavaScript Level: Beginner Problem: I'm guessing switch statements don't work with if else statements? Updated to bring more clarity To underline the point of the exercise here: the goal is to convert if else statements to a switch version of the statement (like noted in my under "JavaScript" headline). Not necessarily using an if else statement (which I tried to do) in a switch statement. JavaScript See updated code further down if-else Code from last exercise that i'm converting to a switch statement Updated code:
  9. Hi I forgot to everything under var newStory = storyText; var xItem = randomValueFromArray(insertX); var yItem = randomValueFromArray(insertY); var zItem = randomValueFromArray(insertZ); when I updated my comment I managed to fix it, thank you
  10. Hi I'm using a .html and .js file Languages: HTML, CSS, JavaScript Level: Beginner Problem: Unable to loop through JavaScript program more than once (aka change custom name a second time or changing from us to uk) I managed to fix all my problems to get the program to work but I do not know why it only works one time.. Short info about the program: It generates a short story where Bob is replaced by your custom name and it can translate fahrenheit and pounds to celsius and kg If you would like to make this program yourself just google Mozilla Javascript (the course) silly story generator (the assignment to test your beginner skills) or something similar. Html CSS JavaScript
  11. Changing from input type reset to button fixed it thank you.
  12. Update: I removed the calling and then I got stuck on what to do next. How do use input type="button" in javascript? is it like Or something else? the Mozilla website didn't show an example of how to do this. JavaScript HTML <input type="reset" value="Börja Om" onclick="Reset()"> I will be done with CSS soon then I can learn more about JavaScript which seems to be the most fun part about building a website..
  13. Its the code below correct? HTML <input type="reset" value="Börja Om" onclick="Reset()"> JavaScript
  14. Update: I realized that the reset button doesn't include my datecontrol.value = 07:00, what can I do about that? I'm guessing I would need to customize the reset button through javascript?
×