Var reassigned without keyword var

Var reassigned without keyword var
0

#1

Tell us what’s happening:
In one of the previous exercise it was told to not declare variables without the keyword var. Reassigning it without the keyword is fine, is it?

Your code so far

// Example
var changed = 0;

function change(num) {
  return (num + 5) / 3;
}

changed = change(10);

// Setup
var processed = 0;

function processArg(num) {
  return (num + 3) / 5;
}

// Only change code below this line
var processed = processArg(7);

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0.

Link to the challenge:


#2

Yes, that is why you should really write:

processed = processArg(7);

#3

Thank you for replying.