"I think the best way is to take success and failure in the same stride. Both come one after the other," she told in a group interview.
"I have been fortunate that my films have done well. So I don't really go and shout on the rooftop that my film crossed Rs.100 crore, nor do I cry when my film doesn't do well. I do this (acting) because I enjoy my work," she added.
Failure of "Joker" has not hampered her in any way, she said and added: "I was a part of the film. Everybody connected to a film, which doesn't do well, is affected. How I treat my success, the same way I treat my failures."
Meanwhile, the actress is gearing up for the release of her new film "Son of Sardaar", opposite Ajay Devgn. Directed by Ashwni Dhir, the film also stars Sanjay Dutt and Juhi Chawla.
In the film, Sonakshi plays a typical Punjabi girl. The 25-year-old has performed various bike stunts in the film.
"It was fun and a completely different experience. The character is very colourful and vibrant. I am doing a lot in this movie, which I have not done before like action, and riding a bike," she said.
"Son Of Sardaar" is set to release Nov 13 and late filmmaker Yash Chopra's "Jab Tak Hai Jaan" too hits the screens on the same day.
Though Sonakshi is saddened by the legendary filmmaker's sudden demise, she doesn't believe that the simultaneous release will have any effect on the two films.
"It's a sad fact that a legendary filmmaker passed away, just before the release of his film... I don't think we should mix our movie and his movie and make it a topic of conversation. This decision is not in my hands, I am the actress of the film. It is something, which much senior people than me are looking into and deciding. The lesser I say, the better it will be," she added.