Click here to Skip to main content
15,903,523 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: JavaScript Question #3 Pin
Richard Deeming25-Apr-17 12:31
mveRichard Deeming25-Apr-17 12:31 
GeneralRe: JavaScript Question #3 Pin
Kevin Marois25-Apr-17 12:32
professionalKevin Marois25-Apr-17 12:32 
QuestionNext JavaScript Question Pin
Kevin Marois25-Apr-17 7:50
professionalKevin Marois25-Apr-17 7:50 
AnswerRe: Next JavaScript Question Pin
Richard Deeming25-Apr-17 8:14
mveRichard Deeming25-Apr-17 8:14 
GeneralRe: Next JavaScript Question Pin
Kevin Marois25-Apr-17 8:16
professionalKevin Marois25-Apr-17 8:16 
GeneralRe: Next JavaScript Question Pin
Richard Deeming25-Apr-17 8:22
mveRichard Deeming25-Apr-17 8:22 
GeneralRe: Next JavaScript Question Pin
Kevin Marois25-Apr-17 8:23
professionalKevin Marois25-Apr-17 8:23 
QuestionQuick JavaScript Question Pin
Kevin Marois25-Apr-17 6:27
professionalKevin Marois25-Apr-17 6:27 
I found this piece of code
function formatStock(stock) {
        return $.extend(stock, {
            Price: stock.Price.toFixed(2),
            PercentChange: (stock.PercentChange * 100).toFixed(2) + '%',
            Direction: stock.Change === 0 ? '' : stock.Change >= 0 ? up : down
        });
    }

After some research, I THINK it's a function called formatStock that extends a stock object by adding 3 properties to it.

Am I right here?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Quick JavaScript Question Pin
Richard Deeming25-Apr-17 6:59
mveRichard Deeming25-Apr-17 6:59 
GeneralRe: Quick JavaScript Question Pin
Kevin Marois25-Apr-17 7:09
professionalKevin Marois25-Apr-17 7:09 
GeneralRe: Quick JavaScript Question Pin
Kevin Marois25-Apr-17 7:16
professionalKevin Marois25-Apr-17 7:16 
GeneralRe: Quick JavaScript Question Pin
Richard Deeming25-Apr-17 8:10
mveRichard Deeming25-Apr-17 8:10 
GeneralRe: Quick JavaScript Question Pin
Kevin Marois25-Apr-17 8:11
professionalKevin Marois25-Apr-17 8:11 
GeneralRe: Quick JavaScript Question Pin
Richard Deeming25-Apr-17 8:15
mveRichard Deeming25-Apr-17 8:15 
GeneralRe: Quick JavaScript Question Pin
Kevin Marois25-Apr-17 8:19
professionalKevin Marois25-Apr-17 8:19 
QuestionAdd or Update Row In Data Table Pin
Kevin Marois24-Apr-17 12:13
professionalKevin Marois24-Apr-17 12:13 
AnswerRe: Add or Update Row In Data Table Pin
Richard Deeming25-Apr-17 12:48
mveRichard Deeming25-Apr-17 12:48 
GeneralRe: Add or Update Row In Data Table Pin
Kevin Marois25-Apr-17 12:49
professionalKevin Marois25-Apr-17 12:49 
GeneralRe: Add or Update Row In Data Table Pin
Kevin Marois26-Apr-17 8:01
professionalKevin Marois26-Apr-17 8:01 
GeneralRe: Add or Update Row In Data Table Pin
Richard Deeming27-Apr-17 1:39
mveRichard Deeming27-Apr-17 1:39 
GeneralRe: Add or Update Row In Data Table Pin
Kevin Marois28-Apr-17 7:21
professionalKevin Marois28-Apr-17 7:21 
GeneralRe: Add or Update Row In Data Table Pin
Richard Deeming28-Apr-17 8:27
mveRichard Deeming28-Apr-17 8:27 
GeneralRe: Add or Update Row In Data Table Pin
Kevin Marois1-May-17 6:55
professionalKevin Marois1-May-17 6:55 
GeneralRe: Add or Update Row In Data Table Pin
Richard Deeming3-May-17 9:51
mveRichard Deeming3-May-17 9:51 
GeneralRe: Add or Update Row In Data Table Pin
Kevin Marois3-May-17 10:35
professionalKevin Marois3-May-17 10:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.