get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
out.println(total);
that line isn't finished @Waterkid123012
console.log('stuf in here') or document.write('stuff in here')
java
NOT javascript
manish-giri sends brownie points to @heroiczero and @darrenfj and @khaduch and @daddycardona and @github-henry and @thekholm80 :sparkles: :thumbsup: :sparkles:
:cookie: 409 | @daddycardona |http://www.freecodecamp.com/daddycardona
:cookie: 410 | @github-henry |http://www.freecodecamp.com/github-henry
:star2: 2171 | @darrenfj |http://www.freecodecamp.com/darrenfj
:star2: 1931 | @heroiczero |http://www.freecodecamp.com/heroiczero
:star2: 3399 | @khaduch |http://www.freecodecamp.com/khaduch
:star2: 1531 | @thekholm80 |http://www.freecodecamp.com/thekholm80
thekholm80 sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6681 | @manish-giri |http://www.freecodecamp.com/manish-giri
daddycardona sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6682 | @manish-giri |http://www.freecodecamp.com/manish-giri
github-henry sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6683 | @manish-giri |http://www.freecodecamp.com/manish-giri
khaduch sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6684 | @manish-giri |http://www.freecodecamp.com/manish-giri
heroiczero sends brownie points to @daddycardona and @thekholm80 and @github-henry and @darrenfj and @khaduch and @manish-giri :sparkles: :thumbsup: :sparkles:
:cookie: 411 | @github-henry |http://www.freecodecamp.com/github-henry
:cookie: 410 | @daddycardona |http://www.freecodecamp.com/daddycardona
:star2: 1532 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:star2: 2172 | @darrenfj |http://www.freecodecamp.com/darrenfj
:star2: 3400 | @khaduch |http://www.freecodecamp.com/khaduch
:star2: 6685 | @manish-giri |http://www.freecodecamp.com/manish-giri
github-henry sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1932 | @heroiczero |http://www.freecodecamp.com/heroiczero
khaduch sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1933 | @heroiczero |http://www.freecodecamp.com/heroiczero
gishy1 sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:star2: 1852 | @dhcodes |http://www.freecodecamp.com/dhcodes
// jshint esversion:6
function titleCase(str) {
return str
.split(' ')
.map(w => {
const arr = w.split('').map(l => l.toLowerCase());
return [arr[0].toUpperCase(), ...arr.slice(1)].join('');
})
.join(' ');
}
gishy1 sends brownie points to @kbaig :sparkles: :thumbsup: :sparkles:
:cookie: 370 | @kbaig |http://www.freecodecamp.com/kbaig
gishy1 sends brownie points to @sjames1958gm and @dhcodes and @kbaig :sparkles: :thumbsup: :sparkles:
:star2: 8606 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
.replace
you can make this a bit shorter :-)
for (int i = 0; i < address.length; i++) {
URL url = new URL(address[i]);
BufferedInputStream bis = new BufferedInputStream(url.openStream());
FileOutputStream fis = new FileOutputStream(file);
System.out.println("Downloading from " + address[i]);
byte[] buffer = new byte[1024];
int count = 0;
while ((count = bis.read(buffer, 0, 1024)) != -1) {
fis.write(buffer, 0, count);
}
fis.close();
bis.close();
}
s.replace(s[0], s[0].toUpperCase())
function titleCase(str) {
return str.toLowerCase().replace(/( |^)./g, m => m.toUpperCase());
}
g
flag means find all instead of just the first occurrence
darrenfj sends brownie points to @daddycardona and @thekholm80 and @github-henry and @khaduch and @manish-giri and @heroiczero and @sjames1958gm :sparkles: :thumbsup: :sparkles:
:cookie: 413 | @github-henry |http://www.freecodecamp.com/github-henry
:cookie: 411 | @daddycardona |http://www.freecodecamp.com/daddycardona
:star2: 8607 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
:star2: 6687 | @manish-giri |http://www.freecodecamp.com/manish-giri
:star2: 3401 | @khaduch |http://www.freecodecamp.com/khaduch
:star2: 1936 | @heroiczero |http://www.freecodecamp.com/heroiczero
:star2: 1533 | @thekholm80 |http://www.freecodecamp.com/thekholm80
darrenfj sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:star2: 1853 | @dhcodes |http://www.freecodecamp.com/dhcodes
:star2: 2173 | @darrenfj |http://www.freecodecamp.com/darrenfj
thekholm80 sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
github-henry sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2174 | @darrenfj |http://www.freecodecamp.com/darrenfj
kbaig sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
:star2: 1392 | @alpox |http://www.freecodecamp.com/alpox
:star2: 1393 | @alpox |http://www.freecodecamp.com/alpox
faraco sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
Has anyone ever had problems adding SCSS to create-react-app? I followed the instructions in the CRA docs, but I basically get this error whenever I try to save a scss file.
=> changed: project\styles\sass\styles.scss
{
"status": 3,
"message": "File to read not found or unreadable: project/styles/sass/styles.scss",
"formatted": "Internal Error: File to read not found or unreadable: project/styles/sass/styles.scss\n"
}
I found threads like this:
sass/node-sass#1894
michaelwayman/node-sass-chokidar#14
dhcodes sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2175 | @darrenfj |http://www.freecodecamp.com/darrenfj