CodeChallenge
CodeChallenge copied to clipboard
All my thinking about some code challenge and Free Code Camps
In (Basic JavaScript: Store Multiple Values in one Variable using JavaScript Arrays) Example given is var sandwich = ["peanut butter", "jelly", "bread"]. Whereas solution to challenge is var sandwich =...
Hello, I want to introduce this update to your repository because this exercise has updated.
I saw your solution when I was looking for an efficient way to do this operation - but later came up with an alternative approach: This is much faster. **`var...
Given `myVar` = 12 - 6; // assigned 6 My answer `var difference = 45 - 3; difference = 12;` **Error** **make the variable difference = 12**
I would simply write something like the following( i%2 returns true for odd numbers): ``` javascript // Setup var myArray = []; for (var i=1; i
The previous code was showing errors in the console.
Kindly, check this method. Thanks