Police said it followed an incident where a car was driven at a man between the Newpark and Wilderness roundabouts on Saturday.
It is understood a Renault Clio narrowly avoided hitting a 45-year-old.
The 18-year-old man has also been charged with a number of offences under the Road Traffic Act and is due to appear at Livingston Sheriff Court.
A teenager has been charged in connection with an attempted murder on the A71 in Livingston.