I'm a beginner coder and i ran into this issue and I don't know how to fix it

Earlier today i encountered a issue in my code with an error message and I don’t know how to fix

I’m using VScode and unity the error was
Assets\PlayerMovement.cs(18,41): error CS1061: 'Rigidbody2D' does not contain a definition for 'Velocity' and no accessible extension method 'Velocity' accepting a first argument of type 'Rigidbody2D' could be found (are you missing a using directive or an assembly reference?)

and thats all i know


I advise you to use IDE like visual studio it will help you to detect methods and the good variable and properties spelling.
the GetComponent<RigidBody2D>().velocity lower case in your case.