# Khan/khan-exercises

Switch branches/tags
Nothing to show
Fetching contributors…
Cannot retrieve contributors at this time
119 lines (107 sloc) 5.23 KB
 Place value
shuffle([1, 2, 3, 4, 5, 6, 7, 8, 9]).slice( 0, 4 ) digitsToInteger( DIGITS ) randRange( 0, 3 ) DIGITS[POWER] (function() { var maxPower = DIGITS.length - 1; var products = \$.map( DIGITS, function( digit, index ){ return expr([ "*", digit, pow( 10, maxPower - index ) ]); }); return products.join( "+" ); })() (function() { var maxPower = DIGITS.length - 1; var words = \$.map( DIGITS, function( digit, index ) { return plural( digit, powerToPlace( maxPower - index ) ); }); return words.join( " + " ); })() (function() { var places = placesLeftOfDecimal.slice( 0, 4 ); return \$.map( places, function( place, i ) { return place + "s"; }); })() PLACES[ DIGITS.length - 1 - POWER ]

What is the place value of DIGIT in NUMBER?

SOLUTION

• place

NUMBER can be represented as follows.

= HINT_IN_NUMBERS

= HINT_IN_WORDS

Thus, DIGIT is in the SOLUTION place.