If I may ask, how do you know for sure it's the Ten commandments that's being spoken of in the book of
1st John 3:4--Whosoever committeth sin transgresseth also the law: for sin is the transgression of the law"
There is a law being spoken of, But it's not the Ten commandments that's being spoken of in 1st John 3:4.
If you back up to Verse's 2 & 3, and then read down to Verse 4, Then you will find what law John is speaking about.
It speaks of the ten -and every other command which may be from God.
I John 2:
3Now by this we know that we know Him, if we keep His commandments. 4 He who says, “I know Him,” and does not keep His commandments, is a liar, and the truth is not in him. 5 But whoever keeps His word, truly the love of God is perfected in him. By this we know that we are in Him. 6 He who says he abides in Him ought himself also to walk just as He walked.
7
Brethren,[a] I write no new commandment to you, but an old commandment which you have had from the beginning. The old commandment is the word which you heard from the beginning.[
b] 8 Again, a new commandment I write to you, which thing is true in Him and in you, because the darkness is passing away, and the true light is already shining.
He is not saying the old commandments should not be done -but explaining how they can be done better in spirit and truth -not just in letter.
The first commandments are how to begin to love God -the latter how to begin to love neighbor.
4
Whoever commits sin also commits lawlessness, and sin is lawlessness. 5 And you know that He was manifested to take away our sins, and in Him there is no sin. 6 Whoever abides in Him does not sin. Whoever sins has neither seen Him nor known Him.
7 Little children, let no one deceive you. He who practices righteousness is righteous, just as He is righteous. 8 He who sins is of the devil, for the devil has sinned from the beginning. For this purpose the Son of God was manifested, that He might destroy the works of the devil. 9 Whoever has been born of God does not sin, for His seed remains in him; and he cannot sin, because he has been born of God
10 In this the children of God and the children of the devil are manifest: Whoever does not practice righteousness is not of God, nor
is he who does not love his brother. 11 For this is the message that you heard from the beginning, that we should love one another, 12 not as Cain
who was of the wicked one and murdered his brother. And why did he murder him? Because his works were evil and his brother’s righteous.
13 Do not marvel, my brethren, if the world hates you. 14 We know that we have passed from death to life, because we love the brethren. He who does not love
his brother[
c] abides in death. 15 Whoever hates his brother is a
murderer, and you know that no murderer has eternal life abiding in him
16 By this we know love, because He laid down His life for us. And we also ought to lay down
our lives for the brethren. 17 But whoever has this world’s goods, and sees his brother in need, and shuts up his heart from him, how does the love of God abide in him?
18 My little children, let us not love in word or in tongue, but in deed and in truth. 19 And by this we know[
d] that we are of the truth, and shall assure our hearts before Him. 20 For if our heart condemns us, God is greater than our heart, and knows all things. 21 Beloved, if our heart does not condemn us, we have confidence toward God. 22
And whatever we ask we receive from Him, because we keep His commandments and do those things that are pleasing in His sight. 23 And this is His commandment: that we should believe on the name of His Son Jesus Christ and love one another, as He gave us[
e] commandment.
24
Now he who keeps His commandments abides in Him, and He in him. And by this we know that He abides in us, by the Spirit whom He has given us.
Matt 19:16And, behold, one came and said unto him, Good Master, what good thing shall I do, that I may have eternal life?
17And he said unto him, Why callest thou me good?
there is none good but one,
that is, God: but if thou wilt enter into life, keep the commandments.
18He saith unto him, Which? Jesus said, Thou shalt do no murder, Thou shalt not commit adultery, Thou shalt not steal, Thou shalt not bear false witness,
19Honour thy father and
thy mother: and, Thou shalt love thy neighbour as thyself.
Just because he did not mention the others above does not mean they are not part of the law.