[SOLVED] Create Decimal Numbers with JavaScript

[SOLVED] Create Decimal Numbers with JavaScript
0

#1

Tell us what’s happening:

Your code so far

var ourDecimal = 5.7;

// Only change code below this line

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36.

Link to the challenge:


#2

What have you tried so far? You’re going to create a variable named myDecimal and assign it any number as long as it has a decimal point in it.


#3

var myDecimal = 5.7;
thanks @kevcomedia