Given a list of strings, write a Python snippet to sort the strings in ascending order according to word length.
[ "Code", "Python", "JavaScript", "Java"]
strings = ["Code", "Python", "JavaScript", "Java"]

# sort the list by word length
strings.sort(key = lambda x: len(x))

print(strings)
# Output: ["Code", "Java", "Python", "JavaScript"]